// dlg.txt

//mark_quest_dest(zone,x,y,layer,quest);
//	code =
//		sf(,,2);
//		toggle_quest(19,10);
//		award_party_xp(MED_QUEST_XP);
//	break;

begintalkscript;

variables;

short this_town = 0;
short i;

begintalknode;
	tag = 1;
	condition = get_sdf(this_town,1) == 0;
	text1 = "You enter [F0], Haven's main fortress in the Gentle Coast. You dimly remember visiting here when you were a small child. Back then, it was run-down and neglected. In the last few decades, it has been allowed to crumble.";
	text2 = "Shockingly, nobody greets you. No guards are visible. They must be off dealing with the raiders from the north. Your escort runs off to secure the fort.";
	text3 = "Sutter promised that General Miranda would greet you. You do hear people talking. The voices come from outside the only fully intact building. There is a warehouse and command post in the center of [F0], looking out over the river port.";
	text4 = "(Your warriors depart. Speak with General Miranda in the center of town to learn how to recruit them again.)";
	code =
		run_game_hardcode(5);
		sf(this_town,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(this_town,2) == 0;
	text1 = "The headquarters of [F0] loom over the small port to the west. Long docks extend into the cold, wide river, which flows down from the tall peaks of the Rokaj. You can see a large warehouse hanging off the back of the hall.";
	text2 = "The building is intact and under Haven's control. A nice change of pace from the mess you've seen so far.";
	text3 = "In front of the hall, an aggravated General Miranda is getting a report from some Haven scouts. You know her well. She helped you greatly during your mission in Sacramentum. She takes a break from her shouting to give you a wave.";
	code =
		sf(this_town,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(this_town,3) == 0;
	text1 = "As you approach Miranda's office, you walk by a gleaming mirror. This is a remarkably useful magical device: It enables people to speak with each other over great distances. For example, it enables your mother to nag and pester you from thousands of miles away.";
	text2 = "At the moment, it looks like an ordinary mirror. No messages for you. If it sparkles, that means someone wants to speak with you.";
	text3 = "(Each of Haven's seven forts has one of these mirrors. You can check them often to get information. Sometimes, this knowledge will be useful.)";
	code =
		sf(this_town,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(this_town,4) == 0 && portal_convo() > 0;
	text1 = "The mirror starts to sparkle when you pass by. Someone far away strongly wishes to speak with you.";
	text2 = "(Use the mirror to talk to Haven. When it is sparkling, someone is trying to contact you.)";
	code =
		sf(this_town,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(this_town,5) == 0;
	text1 = "In the hall to the north, you see a stone portal. This is one of the most prized of Haven's magical artifacts. When it is open and glowing, you can walk through it to the Palace of Haven, and back.";
	text2 = "Only those who have been touched by a certain spell can use the portal. Usually royalty. Of course, it was applied to you at birth. The portal consumes great energy and tends to make the user very nauseated. A vomiting pot is provided.";
	text3 = "Still, when someone important needs to be moved somewhere very quickly, this is the best method.";
	text4 = "Your brother, Prince Sutter, is waiting in front of the portal impatiently.";
	code =
		sf(this_town,5,1);
		if (char_ok(58) == FALSE)
			rs(4);
	break;


begintalknode;
	tag = 6;
	condition = get_sdf(this_town,6) == 0;
	text1 = "The upper floor of the hall is dedicated to the business of Haven. General Miranda managed to clean it up a little before you arrived. It isn't an entire ruin. Your bedroom is to the west.";
	text2 = "You are desperately relieved to see your most prized piece of equipment: your butler Stonehouse. He was sent to [F0] ahead of you, and he seems to have survived the raider attacks so far.";
	text3 = "He stands at attention, waiting to see to your royal needs. His face is calm, and his eyes have their constant look of haunted despair.";
	code =
		sf(this_town,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(this_town,7) == 0;
	text1 = "General Miranda and Stonehouse, working together, attempted to set up quarters for you worthy of a [P] of Haven. Of course, they failed. The meal left out for you is cold, and the cask of wine left for you is of a subpar vintage.";
	text2 = "Could be worse. Your wild youth left you with a bit of a reputation in the Known Lands. As a result, you do have food and wine, and the bed has proper sheets and a pillow. You can rest in beds like this one to recover your strength.";
	text3 = "A chest waits in the center of the room, doubtless full of equipment necessary for survival.";
	text4 = "(When you are on a quest and receive a reward item you can't carry, it will appear in this chest.)";
	code =
		sf(this_town,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(this_town,8) == 0;
	text1 = "You find the library of [F0]. It is the most intact and well-protected room in the fort. Haven's symbol is the scroll for a reason. Treaties, records, histories, and communication are much of the source of Haven's power.";
	text2 = "A lone figure wanders among the dusty stacks. You remember him as Sage Harlan. He was one of Miranda's assistants, back when she was but a lowly Chief on Sacramentum.";
	text3 = "When Harlan sees you, he turns and bows, his arms heavy with a load of delicately balanced scrolls. _I'm so glad you made it safely, [P] [N]. I know little about the Ro so far, but I will help however I can._";
	code =
		sf(this_town,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(this_town,9) == 0;
	text1 = "There is a neglected guard tower in the corner of the fortress. Normally, you would expect to see ballistas and watchful guards upstairs. These days, who knows what mess you will find?";
	text2 = "The lower level is dusty and empty. The floor is scratched and worn. Whatever work was done here, the equipment was removed some time ago. You will need to find a use for this open space.";
	text3 = "(You can build workshops and other useful structures on open wood floor. Each fort will have a free area you can build on immediately.)";
	code =
		sf(this_town,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(this_town,14) == 0 && gf(9,11) > 0;
	text1 = "You return to [F0] and find that much has changed while you were off on your adventure. Reinforcements have arrived, probably from Haven's army encamped to the west. Guards and workers are everywhere.";
	text2 = "As you pass by, everyone is respectfully quiet. Your reputation during your short life has been a bit ... uneven. Still, these warriors of Haven are trapped and isolated in a truly dangerous land. Seeing the face of royalty comforts them greatly.";
	text3 = "What would comfort them more, however, is having buildings and workshops again. Maybe General Miranda can help you to bring that about.";
	code =
		sf(this_town,14,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(this_town,15) == 0 && ((char_ok(49)) || (char_ok(50)) || (char_ok(51)) || (char_ok(52)) || (char_ok(53)) || (char_ok(54)) || (char_ok(55)) || (char_ok(56)) || (char_ok(57)));
	text1 = "You notice that Chief Cestus is holding court in the Audience Hall to the north. When she catches your eye, she waves you forward.";
	text2 = "She wants you to come advise her. Another demand on your limited time.";
	code =
		sf(this_town,15,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(2,23) == 1;
	text1 = "That's odd. There was a banner of Haven outside this door. Now it is missing. It was not a particularly new standard. Or fancy, or clean. It should, however, be here.";
	code =
		sf(2,23,2);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "You decide, considering the urgency of the situation, that you should speak with General Miranda before finding your bedroom.";

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "You look into the mirror. You see you. Nobody is trying to speak with you right now. When the mirror sparkles, someone is trying to contact you.";

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "You approach the portal. It leads back to Sharyn's Palace, your home. When you get close, an invisible hand flings you back.";
	text2 = "You have to have the Queen's permission to walk through this portal. When travel through it is allowed, you will be told. Until then, you are stuck here.";
	
begintalknode;
	tag = 16;
	condition = 1;
	text1 = "This person is waiting for an audience. Speak with Chief Cestus to find out what is going on.";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "Prince Sutter is standing in front of the shimmering portal. He must have slipped into [F0] when you were occupied elsewhere. He looks exhausted, and his normally flawless armor is scuffed.";
	text2 = "When he sees you, he says, _Ah. [N]. Come on. We must return to our mother's palace. She needs to know what has happened, and we will need to get new orders._";
	text3 = "Then Sutter turns and steps into the portal.";
	code =
		set_dialogue_pic(809); // sutter
		erase_char(58);
	break;
	
begintalknode;
	tag = 18;
	condition = gf(80,12) >= 8 && gf(2,19) == 0;
	text1 = "The portal is open, glowing, and ready to take you home. Now that your diplomatic mission is complete, you wonder if mother will allow you to return to the Rokaj. She controls the portals, after all.";
	text2 = "If you have anything else to do here, you may want to do it now.";
	code =
		sf(2,19,1);
	break;
	
begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

//// General Miranda

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "When General Miranda turns to face you, you can see the relief on her face. You have a reputation for being unpredictable, but given the miserable state of the fort, any help is desperately welcome.";
	text2 = "She waves away her scouts to return to their jobs, turns to you, and bows. _[P] [N], it is an honor to be working for you again. I wish I had a better report to give._";
	text5 = "General Miranda says, _What else do you need, [P]? I can give guidance and support as needed._";
	action = INTRO;
	code =
		set_dialogue_pic(815);
	break;

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(2,23) == 2;
	question = "_The banner of Haven outside the hall is missing._";
	text1 = "_Yes. It disappeared in the middle of the night about a week ago. Very strange. I am looking for a replacement. I would also very much like to find the thief._";
	text2 = "_It wasn't a war banner, so losing it isn't a great dishonor. However, such petty vandalism is to be discouraged._";
	code =
		sf(2,23,3);
	break;
	
begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(0,11) == 0;
	question = "_I think I'm done with the Ro. Please help me to get home._";
	text1 = "_Oh, [P] [N]! You are such a joker! We all missed your sense of humor. Prince Sutter warned us that you might be in a ... whimsical mood. Anyway. The report._";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = gf(0,11) == 0;
	question = "_I need your report. What is your status?_";
	text1 = "_Ahhh._ She looks at the backs of the departing scouts. _Not terrible, actually. We have been raided by a small, determined force from the mountains of the Ro._";
	text2 = "_They have taken several locations and are holding them. Prince Sutter has already departed to dislodge them from a few mines they seized. He believes that their leader is there._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Who sent this attack? And why?_";
	text1 = "_Unknown. The force was small, fortunately. Prince Sutter hopes to grab one of their leaders and question the prisoner vigorously._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Who are the attackers?_";
	text1 = "_A mix of raiders from the Low Dhaga and ka-wolves. Interestingly, the ka-wolves seem to have been obeying the humans. This is rare and strange. Ka-wolves can be trained, but it is very difficult. Perhaps Sage Harlan can investigate this question in calmer times._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Is [F0] under threat?_";
	text1 = "_Not currently. The raiders bypassed us, heading directly to Port Osborn. No doubt to abduct or kill you. The raiding force is small, but their actions are a true outrage against the dignity of Haven._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_'Fort Meadow 4' is an odd name._";
	text1 = "_Oh. Yes. Well. Early settlers called it Fort Meadow, because the Gentle Coast is so, well, meadowy. But all forts of Haven have to have different names. And, when the settlers reported the fort name, a '4' was appended to it._";
	text2 = "_Records. Rules. You know._";

begintalknode;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "_What is the status of [F0] now?_";
	text1 = "_As you can see, it is ... Well, it's pretty gruesome. Haven's fortifications in the Ro have been neglected. To an extent that Prince Sutter found, well, he said a lot of loud words._";
	text2 = "_We will be counting on you to direct its rebuilding. First, however, Prince Sutter left some orders for you._";

begintalknode;
	state = 12;
	nextstate = 10;
	condition = 1;
	question = "_I already have more orders?_";
	text1 = "_Your older brother was fairly insistent. He wants the raiders driven out and the areas they stole liberated. I can relay his precise instructions to you. First, however, you should recruit some soldiers._";
	code =
		toggle_quest(1,10);
		toggle_quest(3,2);
		sf(0,11,1);
	break;
	
begintalknode;
	state = 10;
	nextstate = 13;
	condition = gf(0,11) == 1 || (gf(0,11) == 2 && gf(0,10) < 2);
	question = "_I need to recruit soldiers?_";
	text1 = "_I have seen first-hand how competent a warrior you are. However, assaulting a raider stronghold alone would be ... Prince Sutter was very insistent that you have help._";
	text2 = "_Happily, the three soldiers who escorted you here are still at your service._";
	code =
		sf(0,19,1);
	break;

begintalknode;
	state = 13;
	nextstate = -1;
	condition = gf(0,11) == 1 || ( gf(0,11) == 2 && gf(0,10) < 2);
	question = "_Three warriors? I could actually use a lot more. Like ... fifty?_";
	text1 = "General Miranda gives you a weak smile. _Usually those on a stealthy or diplomatic mission travel with a smaller complement. Also, three is all we have to spare. My apologies._";
	text2 = "_When you are ready, please find me in my office._ She turns and enters the trading hall.";
	text3 = "(End this conversation to learn how to recruit warriors. Make a full party of 4 characters.)";
	action = END_TALK;
	code =
		sf(0,11,2);
		sf(0,12,1);
		erase_char(2);
	break;
	
begintalknode;
	state = 13;
	nextstate = -1;
	condition = gf(0,11) == 1;
	question = "_Sure. Just a moment._";
	text1 = "_When you are ready, please find me in my office._ She turns and enters the trading hall.";
	text2 = "(End this conversation to learn how to recruit warriors. Make a full party of 4 characters.)";
	action = END_TALK;
	code =
		sf(0,11,2);
		sf(0,12,1);
		erase_char(2);
	break;
	
begintalknode;
	state = 13;
	nextstate = -1;
	condition = gf(0,11) == 2 && gf(0,10) < 2;
	question = "_Sure. Just a moment._";
	text1 = "_Of course._";
	text2 = "(End this conversation to learn how to recruit warriors. Make a full party of 4 characters.)";
	action = END_TALK;

	
begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(0,11) == 2 && gf(0,10) > 1;
	question = "_I have recruited more soldiers. Now what?_";
	text1 = "_Now I can relay Prince Sutter's message. There is something he wants you to do. Not me, of course. I would never give orders to royalty of Haven. But ... Well, he told me what I have to say._";
	code =
		sf(0,11,3);
	break;
	
begintalknode;
	state = 10;
	nextstate = 14;
	condition = gf(0,11) == 3 || ((gf(0,11) == 4) && (gf(9,11) == 0));
	question = "_Sutter wants me to do something. Fine. What?_";
	text1 = "_Ahhhh ... So, when they were rushing south, a handful of the raiders went east. They grabbed control of Spiretop Lighthouse. Prince Sutter wants you to go there and retake it. Get what intelligence you can. Do Haven proud. Bear the flag high. All the usual._";
	text2 = "(You have completed a quest by reaching [F0]. This has given you enough experience to give you a level. When you end the conversation, you will learn how to train your characters.)";
	code =
		if (gf(0,11) == 3) {
			sf(2,25,1);
			}
			else rs(2);
		toggle_quest(3,3);
		sf(0,11,4);
	break;

begintalknode;
	state = 14;
	nextstate = -1;
	condition = 1;
	question = "_What is Spiretop Lighthouse?_";
	text1 = "_Oh. Um._ She checks some notes on her desk. _It's a lighthouse. Constructed by Haven. Helps merchant ships through a particularly jagged area of sea._";
	text2 = "_It is not hugely significant in the scheme of things, but even one tower held by this rabble is too many. The Prince's words._";

begintalknode;
	state = 14;
	nextstate = -1;
	condition = 1;
	question = "_Where is the lighthouse?_";
	text1 = "_Leave [F0] and travel east on the roads. Follow the signs._";

begintalknode;
	state = 14;
	nextstate = 15;
	condition = 1;
	question = "_We don't know how many enemies are there? And Sutter is sending me?_";
	text1 = "_Oh. Prince Sutter gave me a response in case you expressed such a sentiment._ She nervously picks up a scrap of paper. _Please, these are your brother's words, not mine._";

begintalknode;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "_Go on._";
	text1 = "She reads from the paper. _[N], quit your whining and show this rabble what Haven can do. No enemy force could ever be too large._";
	text2 = "General Miranda winces. _Um, I'm not sure that is true. But it is what he said. We await news of your victory._";
	action = END_TALK;

begintalknode;
	state = 14;
	nextstate = -1;
	condition = 1;
	question = "_I will get it done._";
	text1 = "General Miranda is very relieved. _Thank you, [P]. We await news of your victory._";
	action = END_TALK;
	
begintalknode;
	state = 10;
	nextstate = 16;
	condition = gf(0,11) == 4 && gf(9,11) > 0;
	question = "_Spiretop Lighthouse has been retaken._";
	text1 = "You relate the tale of your victory to General Miranda. She listens with fascination, especially when you describe your encounter with the shade. _Very interesting. Not what any of us expected, I think._";
	text2 = "_I hope you did not find the mission too difficult._";
	code =
		toggle_quest(3,4);
		sf(0,11,5);
	break;

begintalknode;
	state = 16;
	nextstate = -1;
	condition = 1;
	question = "_What do you think about what the shade said?_";
	text1 = "_Hmmm. As a General of Haven, I am now supposed to analyze such valuable intelligence. I will give it a lot of thought. It is definitely significant._";
	text2 = "_However, the person who really needs to hear about this is Prince Sutter. Happily, you will be able to see him soon._";

begintalknode;
	state = 16;
	nextstate = 10;
	condition = 1;
	question = "_I almost died. Not that my family cares._";
	text1 = "General Miranda nods sympathetically. _Your family's attitude toward you has been the subject of many of our conversations. Perhaps we can discuss this later?_";
	text2 = "_For now, I can give you very valuable aid. It is time to start rebuilding this fort, and I can tell you how._";

begintalknode;
	state = 16;
	nextstate = 10;
	condition = 1;
	question = "_It was manageable._";
	text1 = "General Miranda nods and smiles. _Your calm resolve is an example for us all._";
	text2 = "_Now that things have calmed down for a moment, I can give you very valuable aid. It is time to start rebuilding this fort, and I can tell you how._";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(0,11) == 5;
	question = "_How do I direct the rebuilding of this fort?_";
	text1 = "_So many of the buildings here have crumbled from neglect or were torn down for materials. It is truly shameful. Also a big surprise. The Chiefs here were not forthcoming about their actions, and they left a ruin. We need to make space to build shops._";
	text2 = "_Each plot that can be rebuilt has a stone marker next to it. This will normally cost money, but I have resources available for two plots. Go outside and select a marker. I will have our laborers get to work._";
	action = END_TALK;
	code =
		sf(0,16,1);
		sf(0,11,6);
		toggle_quest(3,4);
	break;


begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(0,11) == 6 && gf(0,22) > 0;
	question = "_I have commanded that a building be rebuilt._";
	text1 = "_That is a bare space. Now we need to fill it with something. Blacksmiths. Weavers. Woodworkers. Even brewers. The more we have, the more money we can make and the better equipment will be available._";
	text2 = "_You can now direct us to rebuild the shops._";
	code =
		sf(0,11,7);
	break;

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(0,11) == 7 || gf(0,11) == 8;
	question = "_How do I replace our lost shops?_";
	text1 = "_First, we need to turn supplies into equipment. Fortunately, this fort still controls some mines. Give the command, and I will turn our resources into a shop. The most urgent things to defend ourselves are a blacksmith and an apothecary._";
	text2 = "(Miranda has made your fort's resources available to you. End the conversation to learn how to buy shops. When you have bought a smithy and an apothecary, talk to Miranda again.)";
	action = END_TALK;
	code =
		sf(0,17,1);
		if (gf(0,11) == 7)
			set_town_visibility(0,1);
		//	change_resource(4,4,2,2,1);
		sf(0,11,8);
		toggle_quest(3,5);
	break;

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(0,11) == 8 && number_of_shop_bought(0) > 0 && number_of_shop_bought(1) > 0;
	question = "_I have bought a smithy and an apothecary._";
	text1 = "_Excellent. The final thing to do is say where they will be built. Then we will have made actual progress._";
	code =
		sf(0,11,9);
	break;

begintalknode;
	state = 10;
	nextstate = 17;
	condition = 1;
	condition = gf(0,11) == 9 || gf(0,11) == 10;
	question = "_So I have to place the shops. How does that work?_";
	text1 = "_Go to the building or stall you rebuilt. You can also place a shop in the northeast tower. Rebuild our smithy and our apothecary._";
	text2 = "(When you end this conversation, you will learn how to place a shop.)";
	code =
		sf(0,18,1);
		sf(0,11,10);
		toggle_quest(3,6);
	break;

begintalknode;
	state = 17;
	nextstate = -1;
	condition = 1;
	question = "_How do I decide where to place the shop?_";
	text1 = "_You can only place shops on wooden floors. Also, each building only has room for one shop. You will need to keep rebuilding to make more shops._";

begintalknode;
	state = 17;
	nextstate = -1;
	condition = 1;
	question = "_What can I place besides shops?_";
	text1 = "_You can make all sorts of decorative furniture. You can plant trees. If you are inclined, you can do a lot of decorating. It won't help in your battles, though._";

begintalknode;
	state = 17;
	nextstate = -1;
	condition = 1;
	question = "_I will get that done._";
	text1 = "_I can't wait to have proper weapons and potions again!_";
	action = END_TALK;

begintalknode;
	state = 10;
	nextstate = 18;
	condition = gf(0,11) == 10 && gf(0,23) > 0;
	question = "_You now have a smithy and an apothecary._";
	text1 = "_Marvelous. Now we can build proper defenses against raiders. The humiliation they dealt us will not be repeated._";
	text2 = "_Don't stop building, though. Each sort of shop will give you valuable advantages. When you reclaim our six lost forts in the other provinces, more shops will give you even better equipment._";
	text3 = "_Oh, and if you didn't already, speak to the alchemist and start getting potions._";
	
begintalknode;
	state = 18;
	nextstate = -1;
	condition = 1;
	question = "_What else can I build?_";
	text1 = "_So many sorts of workshops. Woodworkers for better bows and shields. Weavers for better robes and cowls and bigger backpacks. Mills and breweries to earn money. There are many options to play with._";

begintalknode;
	state = 18;
	nextstate = -1;
	condition = 1;
	question = "_How about a working portal?_";
	text1 = "_Actually, unlike in Sacramentum, the portal here is fully functional. However, it only works when the Royal Palace activates the portal at their end. You are still at their mercy for when you can return to Haven._";
	text2 = "_I will make the full resources of this fort available to you. All our raw materials can now be directed into making workshops and stores._";
	text3 = "_Finally, I do have some exciting news. You can return to Haven now. Prince Sutter has returned._";
	code =
		//change_resource(26,16,8,0,1);
		//set_town_visibility(0,1);
		sf(0,21,1);
		sf(0,11,11);
	break;
	
begintalknode;
	state = 10;
	nextstate = 19;
	condition = gf(0,11) == 11;
	question = "_I can use the portal?_";
	text1 = "_I believe your older brother insists on it. He is by the portal right now, waiting for you. He says that you need to return to Haven and see the Queen immediately._";
	code =
		toggle_quest(3,7);
	break;

begintalknode;
	state = 19;
	nextstate = -1;
	condition = 1;
	question = "_Where is the portal?_";
	text1 = "_In one of the back halls, among the storerooms. To the north._";

begintalknode;
	state = 19;
	nextstate = -1;
	condition = 1;
	question = "_Has my mother taken ill?_";
	text1 = "The general is suddenly nervous. _I'm sure that the Queen is in good health, [P] [N]. She will outlast us all._ News of Queen Sharyn's uneven health has spread throughout the Empire, but it is considered in very poor taste to mention it.";
	text2 = "_Prince Sutter awaits you. I will not delay you. Thank you again for your help, and good fortune._ She clearly expects to not see you again any time soon.";
	action = END_TALK;
	
begintalknode;
	state = 19;
	nextstate = -1;
	question = "_I will go immediately._";
	condition = 1;
	text1 = "_Of course, [P]. I will not delay you. Thank you again for your help._ She clearly expects to not see you again any time soon.";
	action = END_TALK;

begintalknode;
	state = 10;
	nextstate = 20;
	condition = gf(0,11) < 11;
	question = "_So you're a General now. I'd like to know more about what you've been up to._";
	text1 = "_Oh. I'm sorry, [P]. I'm sure we will have time to talk later. For now, Prince Sutter was very insistent that I follow his orders and ignore distractions._";

begintalknode;
	state = 20;
	nextstate = 10;
	condition = 1;
	question = "_Oh, come now. You can ignore my brother for a bit._";
	text1 = "Getting stuck between squabbling royalty is not a situation General Miranda enjoys at all. _I'm so sorry. I think I had best follow the directions of the man who might be King someday. No offense._";

begintalknode;
	state = 20;
	nextstate = 10;
	condition = 1;
	question = "_Of course. That is very reasonable._";
	text1 = "She is greatly relieved by this unexpected burst of reasonableness.";

begintalknode;
	state = 10;
	nextstate = 21;
	condition = gf(0,11) < 11;
	question = "_I want to know about Prince Sutter._";
	text1 = "_Of course. He arrived not long before you, in the greatest of haste. He received my report, gave some orders, said some things about you, and departed immediately._";

begintalknode;
	state = 21;
	nextstate = -1;
	condition = 1;
	question = "_What did he say about me?_";
	text1 = "_Oh._ She greatly regrets mentioning it. You make it clear that you expect an answer.";
	text2 = "_He said, 'I managed to get [B] out of bed and doing something. [N] should be useful for once.'_ General Miranda looks deeply unhappy.";

begintalknode;
	state = 21;
	nextstate = -1;
	condition = 1;
	question = "_Where did he go?_";
	text1 = "_To hunt brigands to the north. He thinks that he can find and question their leader and learn why this raid happened._";

begintalknode;
	state = 21;
	nextstate = -1;
	condition = 1;
	question = "_Will the Prince be safe?_";
	text1 = "_I devoutly hope so. I am not worried. Everyone knows that Prince Sutter is enormously gifted in battle. Um, as are you._";

begintalknode;
	state = 21;
	nextstate = 10;
	condition = 1;
	question = "_That is enough on this topic._";
	text1 = "_Of course, [P]. There is much to do._";

begintalknode;
	state = 10;
	nextstate = 23;
	condition = gf(0,11) == 12 || gf(0,11) == 13;
	question = "_The Queen has sent me back to give you orders regarding the Rokaj._";
	text1 = "_Yes. I have been fully briefed. You need to evaluate the Governors of the Kranas Woods, Low Dhaga, and High Litha. You need to hear the petitions of the Raasas of the four provinces and answer them. Then report the results of this entire mess to me._";
	text2 = "_This is the Queen's order. Once it is done, I understand you will be removed from the Rokaj. I will probably be left here to deal with the wreckage._ She smiles. _I envy you._";
	text3 = "_This is the Queen's order. Once it is done, she wishes you to depart. I will stay to help deal with the growing rebellion._";
	text4 = "_Before you do much, you must go west to Laskara and get permission to travel from the Raasa there. This will allow you to go north on the Pilgrimage Road._";
	code =
		if (gf(0,11) == 12) {
			toggle_quest(4,3);
			toggle_quest(5,1);
			toggle_quest(6,1);
			toggle_quest(7,1);
			toggle_quest(8,1);
			toggle_quest(9,1);
			toggle_quest(10,1);
			toggle_quest(11,1);
			toggle_quest(12,1);
			}
		sf(0,11,13);
		if (gf(80,12) < 6)
			rs(3);
			else rs(2);
	break;
	
begintalknode;
	state = 23;
	nextstate = -1;
	condition = gf(10,11) == 0;
	question = "_I need permission to travel through the Rokaj?_";
	text1 = "_Yes. It is the custom. Tradition. It is a part of our contract of vassalage with the Ro. Fortunately, it is but a formality, but it does show respect to them._";
	text2 = "_Just go to Laskara and talk to the Raasa. I'm sure we will provide some nice, ceremonial gifts, too._";
	
begintalknode;
	state = 23;
	nextstate = -1;
	condition = 1;
	question = "_What do I need to do about the governors?_";
	text1 = "_Fortunately, there is no governor in the Gentle Coast at the moment. That leaves three to evaluate: Governor Yvette of the Kranas Woods. Governor Aato of the Low Dhaga. Governor Ivanna of the High Litha._";
	text2 = "_Investigate. Meet the governors. Travel through the provinces. Then decide if they should be allowed to keep their jobs. Report your decisions to me._";

begintalknode;
	state = 23;
	nextstate = -1;
	condition = 1;
	question = "_What do I need to do about the Raasas?_";
	text1 = "_There are four Raasas at the moment, each the leader of one of the Ro's four provinces. You must meet with each to hear a petition of grievances. It is an old, important ceremony. Manners demand they ask for very little, especially from a [P]._";
	text2 = "_Do what is necessary to satisfy their needs. Then report your success to me._";

// GOVERNORS

begintalknode;
	state = 10;
	nextstate = 24;
	condition = gf(0,11) == 13;
	question = "_We need to talk about the three governors._";
	text1 = "_Of course. Since the Gentle Coast is already under control, I only need your opinions on the governors of the other three provinces._";
	text2 = "_Meet them. Travel around the provinces. Decide if they should get to keep their jobs or not._";

begintalknode; // KRANAS
	state = 24;
	nextstate = 25;
	condition = 1;
	question = "_Let's talk about the Kranas Woods._";
	text1 = "_Of course._ She shuffles through some papers and checks her notes. _Governor Yvette is our authority there. She comes from a powerful family. Seems to have accumulated quite a bit of wealth herself while serving as governor._";
	text2 = "_I await your judgment on Haven's representative in the Kranas Woods._";
	text3 = "_It is still too early to pass judgment on Governor Yvette, but I might be able to give useful information._";
	text4 = "_Your judgment has been made. We must now wait for the results._";
	code =
		cs();
		as(1);
		if (gf(80,9) >= 3)
			as(4);
			else if (gf(80,8) <= 2)
				as(3);
				else as(2);
	break;
	
begintalknode;
	state = 25;
	nextstate = -1;
	condition = gf(80,8) == 0;
	question = "_I have not yet entered the Kranas Woods._";
	text1 = "_I see. You will need to travel north on the Pilgrimage Road. Take the first left. Go to Laskara first and see the Raasa to get permission to travel there._";
	text2 = "_I am a humble servant, but I do have an idea what your mother the Queen will want to happen. If you are unsure about the wisest course, I can share my minor observations._";

begintalknode;
	state = 25;
	nextstate = -1;
	condition = gf(80,8) > 0 && gf(80,9) == 0;
	question = "_I have entered the Kranas Woods, but I haven't met Governor Yvette yet._";
	text1 = "_She maintains her headquarters in the city of Ssilyn, not far inside the Kranas Woods. She doesn't travel around much. She is not popular there._";

begintalknode;
	state = 25;
	nextstate = -1;
	condition = gf(80,8) > 0 && gf(80,9) == 1 && gf(80,8) < 3;
	question = "_I have entered the Kranas Woods and met Governor Yvette._";
	text1 = "_Excellent. Making contact was important. Now you can question her and investigate the province. This will help you learn whether she should keep her job or not._";
	text2 = "_I was told to not accept a judgment until you have explored more of the Kranas Woods. For a full investigation, try to reach their city of Isskale._";

begintalknode;
	state = 25;
	nextstate = 26;
	condition = gf(80,8) > 0 && (gf(80,9) == 1 || gf(80,9) == 2) && gf(80,8) >= 3;
	question = "_I have explored the Kranas Woods and evaluated Governor Yvette._";
	text1 = "General Miranda leans forward in her chair. She grabs a quill pen and sheet of paper and listens intently. _Give me your command and sign it, and I will deliver your word to Queen Sharyn. Then you will be one step closer to escaping this place._";
	
begintalknode;
	state = 26;
	nextstate = -1;
	condition = gf(80,9) == 2;
	question = "_There is another potential governor there. Counsel Abelin._";
	text1 = "Miranda frowns. _Ah. Yes. I have heard about Yvette's disobedient Counsel. If I might make an observation. His tattling to you is not the sort of behavior Haven encourages._";
	text2 = "_Also, Governor Yvette comes from an important and wealthy family of nobles. Your mother believes replacing her would anger her family and cause problems. These are all small details you might want to be aware of._";

begintalknode;
	state = 26;
	nextstate = -1;
	condition = gf(80,9) < 3;
	question = "_Should I support Governor Yvette? Any advice?_";
	text1 = "_Of course, I will never give advice to a [P] of Haven. The Kranas Woods hates Yvette. She chops down their precious forests. However, your family would strongly prefer that Yvette be kept in place for now. She brings wealth and stability to Haven._";

begintalknode;
	state = 26;
	nextstate = -1;
	condition = gf(80,9) < 3;
	question = "_What do you know about Governor Yvette?_";
	text1 = "Miranda shrugs. _Nothing you haven't learned. She takes bribes and exploits the Kranas Woods for her purposes. She also pays bribes and keeps important people back in Haven happy. Removing her pleases the Ro and angers your family._";

begintalknode;
	state = 26;
	nextstate = -1;
	condition = (gf(80,9) == 1 || gf(80,9) == 2) && gf(80,8) >= 3;
	question = "_I officially approve of Governor Yvette._";
	text1 = "_Excellent. The Queen will be very happy to hear it. The Kranas Woods will be upset, but the Ro are always upset._ Miranda draws up the letter and has you sign it. _This will be delivered by portal immediately._";
	text2 = "_Congratulations, [P]. You are one step closer to the end of your journey here._";
	code =
		sf(80,9,3);
		toggle_quest(5,10);
		award_party_xp(SMALL_QUEST_XP);
		inc_flag(80,3,2);
		queen_faction(10);
		ro_faction(-15);
		run_game_hardcode(1010);
	break;
	
begintalknode;
	state = 26;
	nextstate = -1;
	condition = gf(80,9) == 2 && gf(80,8) >= 3;
	question = "_Counsel Abelin has offered to take Governor Yvette's place. I accept the offer._";
	text1 = "_I see. The Kranas Woods will be very glad that their hated Governor is gone. Your family, well ... It is your decision._ Miranda draws up the letter and has you sign it. _This will be delivered by portal immediately._";
	text2 = "_It is done. You are one step closer to the end of your journey here._";
	code =
		sf(80,9,4);
		toggle_quest(5,10);
		award_party_xp(SMALL_QUEST_XP);
		inc_flag(80,3,-2);
		queen_faction(-10);
		ro_faction(5);
		run_game_hardcode(1011);
	break;

begintalknode;
	state = 26;
	nextstate = 24;
	condition = (gf(80,9) == 1 || gf(80,9) == 2) && gf(80,8) >= 3;
	question = "_I have not yet made a decision about Governor Yvette._";
	text1 = "She sets down her pen. _I see. It is important to be cautious. I will be here when you have made your decision._";

begintalknode;
	state = 25;
	nextstate = 24;
	condition = gf(80,9) > 2;
	question = "_How are things proceeding with Governor Yvette?_";
	text1 = "_The Governor and her family are pleased, of course. As for Counsel Abelin, he will be leaving the Rokaj soon. He has no future here. The warriors of the Kranas threaten violence. But when don't they?_";
	text3 = "_The Governor and her family are furious, of course. They are taking their time departing, hoping that her family can pressure the Queen to ignore your word. Counsel Abelin is staying in place, rightfully fearing assassination._";
	action = DEP_ON_SDF 80 9 3;
	
begintalknode;
	state = 25;
	nextstate = 24;
	condition = 1;
	question = "_Let's talk about something else._";
	text1 = "_Of course. I await your commands._";

begintalknode; // LOW DHAGA
	state = 24;
	nextstate = 28;
	condition = 1;
	question = "_Let's talk about the Low Dhaga._";
	text1 = "_A challenging place, yes._ She shuffles through some papers and checks her notes. _Governor Aato is our authority there. Been there for many years. A man must be stationed in the Low Dhaga. They have little respect for women like me, alas._";
	text2 = "_I await your judgment on Haven's representative in the Low Dhaga._";
	text3 = "_It is still too early to pass judgment on Governor Aato, questionable as his talent is, but I might be able to give useful information._";
	text4 = "_You have made a decision. The relevant parties have been informed, and changes are being made. The results are yet to be determined._";
	code =
		cs();
		as(1);
		if (gf(80,11) > 2)
			as(4);
			else if (gf(80,10) <= 2)
				as(3);
				else as(2);
	break;
	
begintalknode;
	state = 28;
	nextstate = -1;
	condition = gf(80,10) == 0;
	question = "_I have not yet entered the Low Dhaga._";
	text1 = "_That will be a key first step. Once you have permission from the Raasa in Laskara to travel the Pilgrimage Road, find it and go north. The roads to the Low Dhaga will be on the right._";

begintalknode;
	state = 28;
	nextstate = -1;
	condition = gf(80,10) > 0 && gf(80,11) == 0;
	question = "_I have entered the Low Dhaga, but I haven't met Governor Aato yet._";
	text1 = "_He won't be hard to find, I think. He gives what orders he does from his seat in the city of Azam, not far from the Pilgrimage Road. You will need to go there anyway to hear the petitions of Raasa Lawita._";

begintalknode;
	state = 28;
	nextstate = -1;
	condition = gf(80,10) > 0 && gf(80,11) == 1 && gf(80,10) < 3;
	question = "_I have entered the Low Dhaga and met Governor Aato._";
	text1 = "_A good start. Making contact is important. Now you can question him and investigate the province. This will help you learn whether he should stay in the Low Dhaga._";
	text2 = "_I'm afraid I was told to not accept a judgment until you have explored more of the Low Dhaga. I believe some of our soldiers are trapped on the road to the city of Atzae. Helping them break free might make the situation there clearer._";

begintalknode;
	state = 28;
	nextstate = 29;
	condition = gf(80,10) > 0 && (gf(80,11) == 1 || gf(80,11) == 2) && gf(80,10) >= 3;
	question = "_I have entered the Low Dhaga and met Governor Aato._";
	text1 = "General Miranda leans forward in her chair. She grabs a quill pen and sheet of paper and listens intently. _Give me your command and sign it, and I will deliver your word to Queen Sharyn. The fate of the Low Dhaga is in your hands._";
	
begintalknode;
	state = 29;
	nextstate = -1;
	condition = gf(80,11) == 2;
	question = "_Raasa Lawita has offered to serve as our Governor._";
	text1 = "Miranda sets down her pen for a moment. _Um, [P], I hesitate to say this. But. The laws of Haven forbid outsiders and vassals from holding the rank of Governor. That is too much power for non-Havenites to have. It tends to result in divided loyalties and rebellion._";
	text2 = "_Of course, you are a [P]. Here your word is law. However, your mother will be very angry._";

begintalknode;
	state = 29;
	nextstate = -1;
	condition = 1;
	question = "_Should I support Governor Aato? Any advice?_";
	text1 = "General Miranda sighs. _When we arrived here, it took no time at all to determine that Governor Aato is an incompetent. He must be replaced in time. However, there is no good, legal replacement available right now._";
	text2 = "_Thus, we have no choice but to keep him._";

begintalknode;
	state = 29;
	nextstate = -1;
	condition = 1;
	question = "_What would be the consequences of keeping Governor Aato?_";
	text1 = "_We will look weak to the Low Dhaga. This will result in more Ro anger and more raids._ She shrugs. _I don't like the Dhagans. I don't mind them being upset._";
	text2 = "_If you choose this, the Queen and Haven will be content._";
	text3 = "_The only competent alternatives are vassals, like Raasa Lawita. This option will infuriate your family._";
	code =
		if (gf(80,11) < 2)
			rs(3);
	break;

begintalknode;
	state = 29;
	nextstate = -1;
	condition = (gf(80,11) == 1 || gf(80,11) == 2) && gf(80,10) >= 3;
	question = "_I officially approve of Governor Aato._";
	text1 = "Miranda nods. _A difficult choice, but the only one available. The Queen will be very happy to hear it. As a bonus, the brutes of the Low Dhaga will be angry._ Miranda draws up the letter and has you sign it. _This will be delivered by portal immediately._";
	text2 = "_Congratulations, [P]. You are one step closer to the end of your journey here._";
	code =
		sf(80,11,3);
		toggle_quest(6,10);
		award_party_xp(SMALL_QUEST_XP);
		inc_flag(80,4,2);
		queen_faction(10);
		ro_faction(-15);
		run_game_hardcode(1012);
	break;

	
begintalknode;
	state = 29;
	nextstate = 30;
	condition = gf(80,11) == 2 && gf(80,10) >= 3;
	question = "_Raasa Lawita has offered to serve as Governor. I accept the offer._";
	text1 = "General Miranda is visibly upset. _[P], I'm sorry, but ... It is the way of Haven that vassals cannot govern themselves. It is a hopeless conflict of interests. It breaks tradition and law. Are you sure this is what you want?_";
	
begintalknode;
	state = 30;
	nextstate = 24;
	condition = 1;
	question = "_I am a [P] of Haven, and my word is law. Raasa Lawita is Governor._";
	text1 = "Miranda quietly draws up the letter of command. You sign it. The deed is done. _We are forced to trust your wisdom. The Queen will be angry, but the Low Dhagans will be very pleased. Maybe they will be less violent for a minute. This letter will be delivered by portal immediately._";
	text2 = "_You are one step closer to the end of your journey here._";
	code =
		sf(80,11,4);
		toggle_quest(6,10);
		award_party_xp(SMALL_QUEST_XP);
		inc_flag(80,4,-2);
		queen_faction(-10);
		ro_faction(5);
		run_game_hardcode(1013);
	break;
	
begintalknode;
	state = 30;
	nextstate = 24;
	condition = 1;
	question = "_Good point. Never mind._";
	text1 = "_And thank you, [P]. We are all relieved that you thought better of this._";

begintalknode;
	state = 29;
	nextstate = 24;
	condition = (gf(80,11) == 1 || gf(80,11) == 2) && gf(80,10) >= 3;
	question = "_I have not yet made a decision about Governor Aato._";
	text1 = "_Oh. It seems fairly straightforward, but ..._ She puts her pen away. _I suppose it is good to be reflective._";

begintalknode;
	state = 29;
	nextstate = 24;
	condition = gf(80,11) > 2;
	question = "_How are things proceeding with Governor Aato?_";
	text1 = "_He is continuing in his blundering, squandering our resources and angering our vassals. Still, Haven is aware of the problem. This difficulty will be solved in time. Your investigation did good._";
	text3 = "_He is preparing to leave. Good riddance to that incompetent. As for what Raasa Lawita will do with all of the power you have given him ... It waits to be seen._";
	action = DEP_ON_SDF 80 11 3;
		
begintalknode;
	state = 29;
	nextstate = 24;
	condition = 1;
	question = "_Let's talk about something else._";
	text1 = "_Of course. What else do you need?_";

begintalknode; // HIGH LITHA
	state = 24;
	nextstate = 32;
	condition = 1;
	question = "_Let's talk about the High Litha._";
	text1 = "_Of course. It is the highest, most remote, most brutal lands of the Rokaj. Not a lot is known about it. Even our soldiers try to avoid it. Being a Governor there must be very difficult. Yet, you must judge her._";
	
begintalknode;
	state = 32;
	nextstate = -1;
	condition = gf(80,12) == 0;
	question = "_I have not yet entered the High Litha._";
	text1 = "_Understandable. To reach it, you will have to climb north on the Pilgrimage Road. The gates to the High Litha are past the Tower of the Erudico._";

begintalknode;
	state = 32;
	nextstate = -1;
	condition = gf(80,12) > 0 && gf(80,13) == 0;
	question = "_I have entered the High Litha, but I haven't met Governor Ivanna yet._";
	text1 = "_Her seat of authority is in the city of Jajayim, north of the entrance to the High Litha. She doesn't get out much, understandably. Travel through the Ro is always perilous. In the icy peaks of the High Litha ..._ She shudders. _I hope to not go there._";

begintalknode;
	state = 32;
	nextstate = -1;
	condition = gf(80,12) > 0 && gf(80,13) == 1 && gf(80,12) < 6;
	question = "_I have entered the High Litha and met Governor Ivanna._";
	text1 = "_A difficult journey, I am sure. Now you can question Governor Ivanna and investigate the province. Deciding whether she is competent or not will not be difficult, I think._";
	text2 = "_However, I was told to not accept a judgment until you have explored more of the High Litha. For a full investigation, try to reach their city of Etzalam and meet their Raasa._";

begintalknode;
	state = 32;
	nextstate = 33;
	condition = gf(80,12) > 0 && gf(80,13) == 1 && gf(80,12) >= 6;
	question = "_I have entered the High Litha and met Governor Ivanna._";
	text1 = "General Miranda leans forward in her chair. She picks up a quill pen and sheet of paper. _Give me your command and sign it, and I will deliver your word to Queen Sharyn. This will be a good task to have behind us._";
	
begintalknode;
	state = 33;
	nextstate = -1;
	condition = 1;
	question = "_I have met no other potential governors in the High Litha._";
	text1 = "_That does not surprise me. Who else would want the job? You sit up in the ice. There are no luxuries. You can't do anything. Everyone hates you. We should count ourselves lucky that Ivanna wants the job._";

begintalknode;
	state = 33;
	nextstate = -1;
	condition = 1;
	question = "_Should I support Governor Ivanna? Any advice?_";
	text1 = "_Your family is happy with her there. She is willing to have the job. None of us can make a change in that murderous land. She even seems competent._";

begintalknode;
	state = 33;
	nextstate = -1;
	condition = 1;
	question = "_What do you know about Governor Ivanna?_";
	text1 = "_Nothing. She has been quietly doing her job up there, many miles from civilization, for year after year. Not shirking her duty. Not begging for credit. I've never met her, and I doubt I ever will, but she is a true Havenite._";

begintalknode;
	state = 33;
	nextstate = -1;
	condition = gf(80,13) == 1 && gf(80,12) >= 6;
	question = "_I officially approve of Governor Ivanna._";
	text1 = "General Miranda writes out the order and has you sign it. _I will get this to Queen Sharyn immediately. This part of your mission is now complete._";
	text2 = "_I'm sure that this will make the High Litha more angry. Or perhaps not. They are a very difficult people to understand._";
	code =
		sf(80,13,2);
		toggle_quest(7,10);
		award_party_xp(SMALL_QUEST_XP);
		inc_flag(80,5,1);
		run_game_hardcode(1014);
	break;
	
begintalknode;
	state = 33;
	nextstate = -1;
	condition = gf(80,13) == 1 && gf(80,12) >= 6;
	question = "_I don't like Governor Ivanna, but there is no replacement. She must keep her post for now._";
	text1 = "_A difficult choice, but the only option open to you._ General Miranda writes out the order and has you sign it. _I will get this to Queen Sharyn immediately. This part of your mission is now complete._";
	text2 = "_I'm sure that this will make the High Litha more angry. Or perhaps not. They are a very difficult people to understand._";
	code =
		sf(80,13,3);
		toggle_quest(7,10);
		award_party_xp(SMALL_QUEST_XP);
		inc_flag(80,5,1);
		run_game_hardcode(1014);
	break;


begintalknode;
	state = 33;
	nextstate = 24;
	condition = gf(80,13) == 1 && gf(80,12) >= 6;
	question = "_I have not yet made a decision about Governor Ivanna._";
	text1 = "_Understood. You might find a decent replacement. But I doubt it._";

begintalknode;
	state = 32;
	nextstate = 24;
	condition = gf(80,9) > 2;
	question = "_How are things proceeding with Governor Ivanna?_";
	text1 = "_Actually, I haven't heard any news from her. Her post is remote, and the land between us and her is crawling with raiders._";
	text2 = "_I hope that she is well._";
	
begintalknode;
	state = 32;
	nextstate = 24;
	condition = 1;
	question = "_Let's talk about something else._";
	text1 = "_Of course. I await your commands._";

	
begintalknode;
	state = 24;
	nextstate = 10;
	condition = 1;
	question = "_That is enough of this for now._";
	text1 = "General Miranda leans back in her chair. _How else can I help?_";

// REPORT RAASA WINS

begintalknode;
	state = 10;
	nextstate = 35;
	condition = gf(0,11) == 13;
	question = "_I need to talk about the four Raasas._";
	text1 = "_As part of a ceremonial visit, you need to visit each of them and hear their petitions. Then you must answer their complaints as best you can. Normally, this is a formality. Wise vassals do not make demands of us._";
	text2 = "_But in the Rokaj? When there are signs of open rebellion? Who knows what will be demanded?_";

begintalknode;
	state = 35;
	nextstate = -1;
	condition = 1;
	question = "_What is a Raasa?_";
	text1 = "_It is sort of a local king of a province. The most powerful local ruler. There are four of them in the Ro, one for each province._";
	text2 = "_There is no king ruling over all of them. If they have disputes, they fight it out. Or they can agree to have the argument settled by the judgment of the Raasa of the High Litha._";
	
begintalknode;
	state = 35;
	nextstate = -1;
	condition = gf(10,11) == 0;
	question = "_I have not met the Raasa of the Gentle Coast._";
	text1 = "_You can find Raasa Elha in the town of Laskara, to the west. The Gentle Coast loves Haven. We bring them all their wealth, after all. You will also need to meet her to get permission to explore the Ro._";


begintalknode;
	state = 35;
	nextstate = -1;
	condition = gf(10,11) > 1 && gf(2,20) == 0;
	question = "_Raasa Elha was assassinated._";
	text1 = "General Miranda nods. _A true surprise, and very worrying. The Gentle Coast has always been the area that strongly supported Haven. Elha has always spoken out in Haven's defense. Now someone has dared to kill her._";
	text2 = "_Be sure to regularly consult the mirror outside. I'm sure your family will have much to say about this soon._";
	code =
		sf(2,20,1);
	break;
	
begintalknode;
	state = 35;
	nextstate = -1;
	condition = gf(10,11) >= 1 && gf(80,14) == 1;
	question = "_I've met the Raasa of the Gentle Coast. They have no petitions._";
	text1 = "General Miranda nods. _Not a surprise at all. I hope that all of the Raasas are that pliable._ She writes out a letter describing this news and has you sign it. _I will get this word to Sharyn's Palace. This one small part of your mission is complete._";
	code =
		sf(80,14,2);
		toggle_quest(8,10);
	break;
	
begintalknode;
	state = 35;
	nextstate = -1;
	condition = gf(80,8) < 2;
	question = "_I have not gotten the petition of the Raasa of the Kranas Woods._";
	text1 = "_It is a necessary ceremony, and it should not be difficult. Their Raasa sits in the city of Ssilyn._";
	
begintalknode;
	state = 35;
	nextstate = 36;
	condition = gf(80,8) >= 2 && gf(80,8) < 6;
	question = "_The Raasa of the Kranas Woods gave me a petition. They want me to calm their enchanted groves._";
	text1 = "General Miranda rubs her temples with agitation. _This is unusual. And insulting. They should not make demands of you, especially since their trees are their problem. Haven is being tested._";
	text2 = "_Yet, it is a test our contract with them allows them to make. The Queen said that you should answer their petition._";
	
begintalknode;
	state = 36;
	nextstate = 35;
	condition = 1;
	question = "_I imagine I will do the job. It will solve the problem._";
	text1 = "_That is a brave and decisive move, worthy of a [P] of Haven. We will put our resources at your disposal. Your victory will show them all that being a vassal of Haven is worthwhile._";
	text2 = "_Please let me know when your mission is completed._";
	
begintalknode;
	state = 36;
	nextstate = 35;
	condition = 1;
	question = "_I don't think I should fight their groves._";
	text1 = "_It is an annoyance and an insult, it is true. However, the Queen did order that the petitions of the Raasas be answered. We will put our resources at your disposal. Your victory will show them all that being a vassal of Haven is worthwhile._";
	text2 = "_Of course, you might get the Queen to change her mind. If not, please let me know when your mission is completed._";
	
begintalknode;
	state = 35;
	nextstate = -1;
	condition = gf(80,8) >= 6 && gf(80,8) < 10;
	question = "_I have satisfied the demands of the Kranas Woods!_";
	text1 = "You tell General Miranda the tale of your victory. She writes the account out with a quill pen and has you sign it. _A fascinating tale. Our sages will be studying it for quite a few years, I think. And yet ... How much did Haven's neglect contribute to this problem happening in the first place?_";
	text2 = "_Anyway. This will be sent to the Queen, letting her know that this part of her request has been completed. Well done, [P]._";
	code =
		sf(80,8,10);
		toggle_quest(9,10);
		award_party_xp(SMALL_QUEST_XP);
	break;
	
begintalknode;
	state = 35;
	nextstate = -1;
	condition = gf(80,10) < 2;
	question = "_I have not gotten the petition of the Raasa of the Low Dhaga._";
	text1 = "_The Raasa of those brutal hill folk sits in the city of Azam. I hope he remembers his place and does not bother you with their backward ways._";
	
begintalknode;
	state = 35;
	nextstate = 37;
	condition = gf(80,10) >= 2 && gf(80,10) < 4;
	question = "_The Raasa of the Low Dhaga gave me a petition. He wants me to deal with the invasion of raiders._";
	text1 = "_I ... see. The aggravations continue. The Low Dhaga should be begging for forgiveness and solving their own problems, not pestering you. Still, our Governor has been slow and weak in his duties, allowing these brigands to spread._";
	text2 = "_Insulting as it is, the Queen did order that the petitions of the Raasas be answered._";
	
begintalknode;
	state = 37;
	nextstate = 35;
	condition = 1;
	question = "_I shouldn't be sent to deal with this sort of mess._";
	text1 = "_I agree. Still, you and your brother did come to Haven for a bit of hunting. Hunting bandits and monsters is one of the most honorable activities for the royalty of Haven. You should end up with some quality trophies._";
	
begintalknode;
	state = 37;
	nextstate = 35;
	condition = 1;
	question = "_I will show them the might of Haven._";
	text1 = "_I do not doubt it. Hunting bandits and monsters is one of the most honorable activities for the royalty of Haven. Mighty resources will be at your disposal. Happy hunting, [P]._";
	
begintalknode;
	state = 35;
	nextstate = -1;
	condition = gf(80,10) >= 4 && gf(80,10) < 10;
	question = "_I have satisfied the demands of the Low Dhaga!_";
	text1 = "You tell General Miranda the tale of your victory. She writes down the account and has you sign it. _Yet, these were not ordinary bandits. They were carefully equipped and trained, and they could have done great harm._";
	text2 = "_You have discovered something very worrying here. I will get this account to the Queen immediately. Well done._";
	code =
		sf(80,10,10);
		toggle_quest(10,10);
		award_party_xp(SMALL_QUEST_XP);
	break;
	
begintalknode;
	state = 35;
	nextstate = -1;
	condition = gf(80,12) < 2;
	question = "_I have not gotten the petition of the Raasa of the High Litha._";
	text1 = "_Fortunately, I've heard that the folk of the High Litha are very quiet. Hopefully, he won't say anything at all. To meet Raasa Suharum, you should go to Jajayim. It is the first city inside the High Litha._";
	
begintalknode;
	state = 35;
	nextstate = -1;
	condition = gf(80,12) == 2;
	question = "_I have been to Jajayim but I haven't found the Raasa Suharum of the High Litha._";
	text1 = "General Miranda looks, for the first time, concerned. _That is strange. I have heard that Raasa Suharum is always there, so that he can settle disputes between the other provinces more easily._";
	text2 = "_He wouldn't dare avoid a [P] of Haven, would he? Keep exploring the High Litha. I'm sure he will turn up._";
	
begintalknode;
	state = 35;
	nextstate = -1;
	condition = gf(80,12) == 3;
	question = "_My progress into the High Litha is blocked by a massive wall._";
	text1 = "You describe the situation in the High Litha to General Miranda. She grows increasingly more grim. _This is ... I am shocked. They refuse to allow Haven access to their lands? And not just a mere merchant or soldier, but a [P]?_";
	text2 = "_This ... is not usually allowed. That must be why the portal in the northern hall is active now. The Queen must want you to come home to figure out how to respond to this insult._";
	
begintalknode;
	state = 35;
	nextstate = -1;
	condition = gf(80,12) > 3 && gf(80,12) < 7;
	question = "_I still haven't gotten the petition of the Raasa of the High Litha._";
	text1 = "_You are running out of places to hunt in. I would go to Etzalam. That is a city in the northern end of the High Litha. Raasa Suharum is many things, I'm sure, but he will not be a coward. He must face you eventually._";
	
begintalknode;
	state = 35;
	nextstate = -1;
	condition = gf(80,12) == 7;
	question = "_I met the Raasa of the High Litha, but he refuses to give a petition._";
	text1 = "You describe the situation to General Miranda. She shakes her head. _This is only growing stranger and more insulting. Raasa Suharum is evaluating you. He wants to get the full measure of you before he deals with you. He has no right._";
	text2 = "_But ... He only wants you to do what you had to do anyway. Evaluate the governors and help the other Raasas. Then confront Raasa Suharum. If he refuses to talk then, you might as well just leave._";
	
begintalknode;
	state = 35;
	nextstate = 38;
	condition = gf(80,12) == 8;
	question = "_I met the Raasa of the High Litha. He commanded me to go to Prova Krug._";
	text1 = "General Miranda nods. Oddly, she seems relieved. _Well, that solves the problem. This request is completely unreasonable. They are violating the terms of our treaty with them. I believe the Queen will say that your work is done._";
	code =
		sf(80,12,10);
		toggle_quest(11,10);
		award_party_xp(SMALL_QUEST_XP);
	break;
	
begintalknode;
	state = 38;
	nextstate = 10;
	condition = 1;
	question = "_I feel like I should answer this challenge._";
	text1 = "She looks away from you. _I ... I can't say anything to support that path. We both know that your mother will not approve. You can easily end up dead on that icy peak. To please the Ro. Which is only a waste._";
	text2 = "_I think we are almost done here. Let us discuss your next step. I believe that you have completed your mission._";
	
begintalknode;
	state = 38;
	nextstate = 10;
	condition = 1;
	question = "_So we are just considering this petition answered?_";
	text1 = "_Of course! It is ridiculous to think that a [P] of the mighty Empire of Haven would climb to the highest, coldest peak of the Rokaj to answer the whines of these savages._";
	text2 = "_I think we are almost done here. Let us discuss your next step. I believe that you have completed your mission._";
	
begintalknode;
	state = 35;
	nextstate = 10;
	condition = 1;
	question = "_I have no more questions._";
	text1 = "_What else should we discuss?_";
	
begintalknode;
	state = 10;
	nextstate = 39;
	condition = gf(0,11) == 13 && gf(80,14) >= 2 && gf(80,9) > 2 && gf(80,11) > 2 && gf(80,13) >= 2 && gf(80,8) >= 10 && gf(80,10) >= 10 && gf(80,12) >= 10;
	question = "_I have made judgments on all governors and received the petitions of all Raasas. I have completed my mission._";
	text1 = "General Miranda checks her records. Then the double-checks them. A moment of tense silence. She grins. _It is true! You are finally done! All Raasas answered. All governors judged. Now you can return to Sharyn's Palace. The portal in the northern hall will open for you. You can go and never return._";
	text2 = "_Then our true work can begin!_";
	code =
		sf(0,11,14);
		toggle_quest(4,4);
	break;
	
begintalknode;
	state = 39;
	nextstate = -1;
	condition = 1;
	question = "_Your true work?_";
	text1 = "_We have coddled the Rokaj too long, accepted too many insults. Once you are safely away, we are going to make them pay for their insolence. I don't know if this war could be avoided by you traveling to Prova Krug._";
	text2 = "_It doesn't matter. Once you are safely away, this insult will be answered._";
	
begintalknode;
	state = 39;
	nextstate = -1;
	condition = 1;
	question = "_There is still more I need to do here._";
	text1 = "_I can't respond to that. You are a [P]. If you want to stay, I can't prevent you._";
	text2 = "_I know that the Queen wants you to use the portal. Therefore, I think that is the way of greatest wisdom._";
	
begintalknode;
	state = 39;
	nextstate = -1;
	condition = 1;
	question = "_My family has requested that I return home?_";
	text1 = "_They were very insistent on that point. They want you to use the portal and go home immediately. You will probably not be in the Rokaj for a very long time, if ever. War is coming._";
	
begintalknode;
	state = 10;
	nextstate = 500;
	condition = gf(0,11) >= 14;
	question = "_I want to discuss my work in the Rokaj._";
	text1 = "_I have nothing more I am allowed to say to you. It is your mother's command that you return home. That is all that I can recommend. The portal home is in one of the halls to the north._";
	text2 = "_The Raasas want you to climb to Prova Krug to answer for Haven. This request is an insult._";

begintalknode;
	state = 500;
	nextstate = -1;
	condition = gf(80,15) < 3;
	question = "_Perhaps I should answer the challenge at Prova Krug._";
	text1 = "_The Queen will be most displeased. She may take her anger out on me. You could consider just using the portal home?_";
	
begintalknode;
	state = 500;
	nextstate = -1;
	condition = gf(80,15) >= 3;
	question = "_I have answered the challenge at Prova Krug._";
	text1 = "You tell General Miranda what you have been up to. She shudders. _I am a General of the army of Haven. It is the greatest honor I would ever hope to attain. Yet, these matters are above even my head._";
	text2 = "_Can you go home now? Then I can finally sleep again. Your mother will have to judge your actions._";
	
begintalknode;
	state = 500;
	nextstate = -1;
	condition = 1;
	question = "_There is so much more I can do here._";
	text1 = "_Perhaps, but it would be a waste of one of your importance, and it would make your mother very, very angry._";
	
begintalknode;
	state = 500;
	nextstate = -1;
	condition = 1;
	question = "_That is all._";
	text1 = "_Of course. It was an honor to work with you again, [P]._";
	action = END_TALK;
	
// Chief Cestus

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = "This used to be a grand hall where emissaries from Haven met with leaders of the Ro. Like everything else in [F0], it is neglected and depressing. At least there is still one official here to speak for your nation.";
	text2 = "She is an old woman, wearing ill-fitting leather armor. It bears the insignia of a Chief, a commander of one of your proud forts. When you approach, she slumps in her chair and lets out a tired sigh.";
	text3 = "_It is an honor to greet a [P] of Haven after all of these quiet years. I am Chief Cestus. I have served in [F0] for many years. Now that you have looked around, I'm sure you have much to say._ Her voice is fitting: tired and defeated.";
	text5 = "Chief Cestus slumps in her chair. Her face is without expression. You wonder when she last showed any passion for the work. You watch as a fine layer of dust slowly settles on her.";
	action = INTRO;

begintalknode;
	state = 40;
	nextstate = 41;
	condition = gf(1,27) == 0;
	question = "_I have had a chance to inspect your fort._";
	text1 = "Chief Cestus nods. _It was inevitable that this reckoning would come. We await your judgment._";

begintalknode;
	state = 41;
	nextstate = 40;
	condition = 1;
	question = "_Things seem to be going well._";
	text1 = "Amazingly, she manages to crack a tiny bit of a smile. _The whimsy of [P] [N] is well-known. I am glad it has led you to mercy. I'm sorry to dispute you, but my proud fort is a ruin._";
	text2 = "_It doesn't have to always be that way, though. Perhaps I can still be of use._";
	code =
		sf(1,27,1);
	break;

begintalknode;
	state = 41;
	nextstate = 40;
	condition = 1;
	question = "_Your fort is not in good shape._";
	text1 = "Chief Cestus nods. _That is the kindest possible way to state the truth. This fort is useless. It doesn't have to always be that way, though. Haven has returned. Perhaps I can still be of use._";
	code =
		sf(1,27,1);
	break;

begintalknode;
	state = 41;
	nextstate = 40;
	condition = 1;
	question = "_This fort is a shame for Haven. You should be flogged._";
	text1 = "Chief Cestus nods. _If you see that as justice, I have no choice but to submit. I obviously did very poorly with the nothing I was given. Perhaps, after you have vented your rage on me, something can be rebuilt._";
	text2 = "_Can I give you assistance before my destruction?_";
	code =
		sf(1,27,1);
	break;	

begintalknode;
	state = 40;
	nextstate = -1;
	condition = gf(92,25) > 0 && gf(92,25) < 5 && has_spec_item(25) > 0;
	question = "_I have recovered the Seventh Army's banner._ (Give it to Cestus.)";
	text1 = "As the guards look on in awe, Chief Cestus reverently takes the torn banner. _What a thing to see. Every tear, every stain is precious. It will fly again. When the Ro see it, it will win you a lot of respect. I promise it._";
	text2 = "The banner is taken away for restoration. _Thank you, [P]. The Great Uprising, all these years later, is close to ending. Now we can deal with the current uprising._";
		code = 
		set_spec_item(25,-1);
		set_flag(92,25,5);
		toggle_quest(17,10);
		award_party_xp(MED_QUEST_XP);
		queen_faction(4);
	break;		

begintalknode;
	state = 40;
	nextstate = 42;
	condition = gf(1,27) > 0;
	question = "_How did you come to be a Chief here?_";
	text1 = "_My first posting was in the Rokaj, over thirty years ago. I served all over this land. Then I was honored with this post. I served my entire career here._";
	text2 = "_I even remember when you visited. You were a small child. And the last time royalty of Haven came here, before now._";

begintalknode;
	state = 42;
	nextstate = -1;
	condition = 1;
	question = "_Thirty years is a long time._";
	text1 = "_Yes. Most officers of Haven choose to travel from time to time. See the world. Stay fresh. I chose to have roots._";

begintalknode;
	state = 42;
	nextstate = -1;
	condition = 1;
	question = "_You chose to stay here?_";
	text1 = "_I love this land. Even though they are on the brink of war with us now, I admire their spirit. Also, we are their overlords, the sun in their sky, even though we ignore them._";
	text2 = "_I settled down. Raised a family here. It happens._";

begintalknode;
	state = 42;
	nextstate = -1;
	condition = 1;
	question = "_So. Any long-term plans?_";
	text1 = "_I will do everything to help you return peace to the Ro. Then I will retire. I will stay here, no matter what cost._";
	text2 = "_Then you can replace me with someone up to the job of rebuilding._";

begintalknode;
	state = 40;
	nextstate = 43;
	condition = gf(1,27) > 0;
	question = "_What happened to [F0]?_";
	text1 = "_You are my [P], so I must be honest. It was neglect. After your father, Consort Darmal, died, the Rokaj was forgotten. Or, that is how it has seemed all these years. I take full responsibility for the state of [F0]. My underlings share no responsibility._";

begintalknode;
	state = 43;
	nextstate = 40;
	condition = gf(1,26) == 0 || gf(1,26) == 1;
	question = "_This is an adequate response._";
	text1 = "_It is the truth. We have done our best. At least the Rokaj is still held. History teaches us that they punish neglect with rebellion._";
	text2 = "_Of course, that may be what is happening now._";
	code =
		sf(1,26,1);
	break;
	
begintalknode;
	state = 43;
	nextstate = 40;
	condition = gf(1,26) == 0 || gf(1,26) == 2;
	question = "_You should be punished for your negligence._";
	text1 = "_Then, when calm is returned, I will accept your judgment. I long knew this day would come. I only hope I can see you repair some of the damage Haven's neglect caused before I accept my fate._";
	code =
		sf(1,26,2);
	break;

begintalknode;
	state = 43;
	nextstate = 44;
	condition = 1;
	question = "_Actually, I need a more honest answer than that._";
	text1 = "The Chief sighs. _We did not get support or resources. We were allowed to decay. It was as simple as that. Resources due to us were diverted. Quality officers soon learned not to serve here._";
	code =
		sf(1,26,3);
	break;
	
begintalknode;
	state = 44;
	nextstate = -1;
	condition = 1;
	question = "_Did you not tell Haven what was happening?_";
	text1 = "_I did as often as I could safely do so. I did not want to annoy the Queen, but I tried to let her and Princess Delia know of the difficulty of their situation._";
	text2 = "She realizes that she is going too far. _They rule. They see the entire Empire. I have no right to question them. But they were told._";
	
begintalknode;
	state = 44;
	nextstate = -1;
	condition = 1;
	question = "_How long have you been neglected?_";
	text1 = "_Quite a few years. Your father, Consort Darmal, was from here. After he died, our land was abandoned._";
	text2 = "She looks at you. _I saw you when you were a child. Your whole family visited here. This was long ago. You look like him._";
	
begintalknode;
	state = 44;
	nextstate = 40;
	condition = 1;
	question = "_You are still responsible for your fort. No excuses._";
	text1 = "_No excuses are given. I will resign and take full responsibility for all that has happened. But ... only after the crisis has passed._";
	
begintalknode;
	state = 44;
	nextstate = 40;
	condition = 1;
	question = "_You did the best you could with what you were given._";
	text1 = "_And yet, it wasn't good enough. We may be facing a new Uprising, and we are not ready. A true Havenite would have found a way to do better. Even if you don't judge me, I will._";
	
begintalknode;
	state = 40;
	nextstate = 45;
	condition = gf(1,27) > 0;
	question = "_I will need support for my mission here._";
	text1 = "_Of course, [P]. What little we have is yours. I should call your attention to the mirror and the portal. We have created quarters for you upstairs. There are supplies and a place to rest there._";
	text2 = "_Any real help, however, will have to come from General Miranda. It is an honor to have her here._";
	text3 = "_In return, I may occasionally need your judgment._";
	
begintalknode;
	state = 45;
	nextstate = -1;
	condition = 1;
	question = "_Tell me about the mirror._";
	text1 = "_It is right outside this office. When it sparkles, someone is trying to talk to you. It is how Sharyn's Palace speaks with us. It has been quiet for a long time, but now that you are here ..._";
	
begintalknode;
	state = 45;
	nextstate = -1;
	condition = 1;
	question = "_Tell me about the portal._";
	text1 = "_It is in one of the northern halls. It leads back to Sharyn's Palace. Once you are done with the Ro, I expect that you will be using it to return home._";
	
begintalknode;
	state = 45;
	nextstate = -1;
	condition = 1;
	question = "_Tell me about my quarters._";
	text1 = "_They are upstairs, looked over by your butler. You can rest and store excess equipment there. We will give our lives to keep you safe._";
	
begintalknode;
	state = 45;
	nextstate = -1;
	condition = 1;
	question = "_Tell me about General Miranda._";
	text1 = "_She has taken over my office to the east. She is extremely quick and competent, I must say. Much needs to be decided about the future of the Rokaj. When you have made a decision, it must be delivered to her._";
	
begintalknode;
	state = 45;
	nextstate = -1;
	condition = 1;
	question = "_You may need my judgment?_";
	text1 = "_This is the foremost of Haven's forts in the Rokaj. Sometimes, we need to judge legal disputes for our vassal state. The most difficult ones are brought to this hall for me to judge. It can be very difficult, and I could use help._";
	text2 = "_Please drop by this hall from time to time. I may need your wisdom for a trial. Now that an Uprising has begun, I am no longer sufficient to handle the trickiest bits of diplomacy._";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = gf(1,27) > 0 && gf(1,25) < 2 && gf(9,11) == 0;
	question = "_Anything I can do for you to help restore the fort?_";
	text1 = "_Not yet. Right now, Prince Sutter's orders override all. I understand he wants Spiretop Lighthouse retaken. General Miranda can tell you more._";
	text2 = "_Once that is done, speak with me again. I might be able to help you._";
		code = 
		toggle_quest(15,2);
	break;

begintalknode;
	state = 40;
	nextstate = 46;
	condition = gf(1,27) > 0 && gf(1,25) < 2 && gf(9,11) > 0;
	question = "_Anything I can do for you to help restore the fort?_";
	text1 = "Chief Cestus gives this some thought. _We do need help. We need supplies to rebuild, but our lines are cut off to the north and the south. They need to be reopened._";
	text2 = "_The most urgent problem is Port Osborn, where you arrived in the Rokaj. The raiders still hold the hall by the docks, and I don't have the ability to dislodge them. You do._";
	code = 
		set_flag(1,25,1);
		toggle_quest(15,3);
	break;
	
begintalknode;
	state = 46;
	nextstate = -1;
	condition = 1;
	question = "_What sort of defenses does the port have?_";
	text1 = "_Very few, now. The raiders are mostly defeated, and we have cut them off from reinforcements. However, the Ro are very brave. The dregs that remain must be driven out with force._";
	
begintalknode;
	state = 46;
	nextstate = -1;
	condition = 1;
	question = "_What is in this for me?_";
	text1 = "_When the supply lines are free, I will be able to give you more resources to build workshops. These workshops will help all of your forces._";
	
begintalknode;
	state = 46;
	nextstate = 40;
	condition = 1;
	question = "_I am eager to help._";
	text1 = "_As you recall, I am sure, Port Osborn is to the south. The building held by the brigands looks out over the docks._";
	
begintalknode;
	state = 46;
	nextstate = 40;
	condition = 1;
	question = "_I'll work on this if I have time. I doubt I will._";
	text1 = "_Of course, [P]. I would never attempt to waste your time._";
	
begintalknode;
	state = 40;
	nextstate = -1;
	condition = gf(1,25) == 1 && gf(8,12) > 0;
	question = "_Port Osborn has been reclaimed!_";
	text1 = "_Excellent. If Haven ever sends us more ships, they will have a place to land. Hopefully that will happen someday. While you were gone, we found some useful supplies._ You are given some money and a nice pair of gloves.";
	text2 = "_I wish I could give you more. First, we need to reclaim the northern road._";
	code = 
		set_flag(1,25,2);
		toggle_quest(15,4);
		award_party_xp(MED_QUEST_XP);
		reward_give(554);
		change_coins(100,TRUE);
	break;		
	
begintalknode;
	state = 40;
	nextstate = 47;
	condition = (gf(1,25) == 2 || gf(1,25) == 3);
	question = "_Anything else I can do?_";
	text1 = "Chief Cestus shows a tiny bit of enthusiasm. _It is a strange sensation ... To make progress. Of course, we are only reclaiming what we lost. But still._";
	text2 = "_This is a humble job, unworthy of you. Yet, nobody else is available to do it._";
	
begintalknode;
	state = 47;
	nextstate = 48;
	condition = 1;
	question = "_Go on._";
	text1 = "_A road leads north from here through a swamp. We have been losing travelers to it. Merchants. Scouts. Caravans. Trackers, the ones who returned, think that a beast has been stalking them. Until it dies, this fort can't be rebuilt._";
	code = 
		set_flag(1,25,3);
		toggle_quest(15,5);
	break;
	
begintalknode;
	state = 48;
	nextstate = -1;
	condition = 1;
	question = "_How can I find this beast?_";
	text1 = "_I am not sure. It lives in the swamps to the north, near the river. If you are not lucky enough to be attacked on the road, some hunting may be required._";
	
begintalknode;
	state = 48;
	nextstate = -1;
	condition = 1;
	question = "_Why is this beast so treacherous?_";
	text1 = "_It is a mystery. When it strikes, none return. They appear to just wander into the swamp and vanish. Something compels them to walk eagerly to their deaths._";
	
begintalknode;
	state = 48;
	nextstate = -1;
	condition = 1;
	question = "_Give me some details about the beast._";
	text1 = "_I have none to give. When it strikes, it is thorough. It doesn't allow survivors. You have powers far beyond what we mere soldiers have, though. And I know you and your brother like to hunt._";
	
begintalknode;
	state = 48;
	nextstate = -1;
	condition = 1;
	question = "_Why haven't the Ro hunted it down?_";
	text1 = "_Well ... In any other province, the young Ro warriors would be lining up for the chance to hunt the thing down._";
	text2 = "_The Gentle Coast tends to be less ... active._";
	
begintalknode;
	state = 40;
	nextstate = -1;
	condition = gf(1,25) == 3 && gf(175,11) > 0;
	question = "_The swamp beast is dead._";
	text1 = "You tell the tale. Chief Cestus shakes her head. _That such a pest could hunt so close to a fortress of Haven. We are all shamed. Well, all but you, [P]. Apologies._";
	text2 = "_Fortunately, now that the docks and road are open, supplies are flowing again. I will have some of them made available to support you immediately._";
	code = 
		set_flag(1,25,4);
		toggle_quest(15,10);
		award_party_xp(MED_QUEST_XP);
		activate_mine_resource(0);

	break;		
	
begintalknode;
	state = 40;
	nextstate = -1;
	condition = gf(1,25) >= 4;
	question = "_Any other ways I can help?_";
	text1 = "_We all need the Ro calmed. We all need this new uprising dealt with. I won't say another word to distract you from that work. I will only spend the last days of my service keeping [F0] intact._";


	
// Sage Harlan

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = "Sage Harlan sets down his scrolls, invites you into his library, and eagerly pours you a cup of tea. _I'm so glad that you are here. I've been in a lot of Haven's vassals, but this one is the messiest since, well, Sacramentum._";
	text2 = "_It is an honor to work with you again._";
	text3 = "As you talk, Stonehouse pokes his head through the door behind you. Awww. He must be lonely.";
	text5 = "When you are present, Sage Harlan leaves his work behind. You are a [P], after all. The world revolves around you. Or it's supposed to. Harlan offers you a steaming cup of tea.";
	text6 = "You note that one cup has recently been used. Stonehouse must sneak in here when you aren't around. Slacking, as usual.";
	action = INTRO;
	code =
		set_dialogue_pic(816);
	break;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = gf(1,28) == 0;
	question = "_We have met before?_";
	text1 = "_Oh. Yes. I was the sage in Sacramentum. When you were there. Maybe we never actually formally met. Apologies, [P]._ He gives a tiny bow.";
	code =
		sf(1,28,1);
	break;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = gf(1,28) == 0;
	question = "_I remember you. Well met!_";
	text1 = "_I am gratified that you remember me, and I am happy to be of assistance again. I don't have a blade, but I have knowledge. I can help direct the blades to where they would do the most good._";
	code =
		sf(1,28,1);
	break;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = gf(1,28) == 0;
	question = "_Enough chat. I need help._";
	text1 = "_Oh. Yes. Of course._ He pushes the tea set aside. _The situation is urgent. You may be unfamiliar with the Rokaj. How can I help?_";
	code =
		sf(1,28,1);
	break;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = gf(1,28) == 0;
	question = "_Don't worry about me. I won't be in the Ro long._";
	text1 = "_What? Really? I ... Um. Of course. Well, while you are here, I'd like to help. I'm sure everything will be fine after you are gone. Things are quite under control._";
	code =
		sf(1,28,1);
	break;
	
begintalknode;
	state = 70;
	nextstate = 71;
	condition = gf(1,28) > 0;
	question = "_What do you do for Haven?_";
	text1 = "_I am a sage. I collect knowledge. I keep records. I write contracts. We sages maintain the framework of knowledge and laws upon which our glorious Empire hangs._";
	text2 = "_As for me in specific, I am in General Miranda's retinue._";

begintalknode;
	state = 71;
	nextstate = -1;
	condition = 1;
	question = "_You follow General Miranda?_";
	text1 = "_I have that good fortune. We met in Sacramentum, and I was lucky enough to hitch myself to her star. She has risen in status quickly, and she has taken me with her to her postings._";

begintalknode;
	state = 71;
	nextstate = -1;
	condition = 1;
	question = "_Done much traveling lately?_";
	text1 = "_Since our time in Sacramentum, the General and I were posted in six different vassal states. I have learned much. Reached many libraries. None of them, however, were as colorful as the Ro._";
	text2 = "(Outside, you hear Stonehouse mutter, _Or as violent._)";

begintalknode;
	state = 70;
	nextstate = 72;
	condition = gf(1,28) > 0;
	question = "_I want to know more about the Rokaj._";
	text1 = "_Yes. This fascinating land. A small land with rich resources and a wild history. One of Haven's vassals for over two hundred years, most of them peaceful._";
	text2 = "_I know little about it so far, I'm afraid. I am learning quickly, and I can share what I know._";
	text3 = "_The Rokaj has four provinces: The Gentle Coast, the Kranas Woods, the Low Dhaga, and the High Litha._";

begintalknode;
	state = 72;
	nextstate = 73;
	condition = 1;
	question = "_Tell me about the Gentle Coast._";
	text1 = "_This is where we are now. It is the coastline, the least rocky and most hospitable of the lands of the Ro. Traditionally, it is the safest place to be. Also the wealthiest._";
	text2 = "(Stonehouse emits a choking noise.)";
	text3 = "_However, the other provinces have developed a great dislike for the Gentle Coast._";
	
begintalknode;
	state = 73;
	nextstate = -1;
	condition = 1;
	question = "_Why is the Gentle Coast so wealthy?_";
	text1 = "_They control the ports and the main roads through this land. Thus, they profit from all trade. They are the ones who deal with outsiders most, as well._";
	
begintalknode;
	state = 73;
	nextstate = 72;
	condition = 1;
	question = "_Why is the Gentle Coast disliked?_";
	text1 = "_It is wealthy and constantly deals with outsiders. This has resulted in a weakening of the ... well, the warrior spirit, I suppose. The coast is seen by some as abandoning the ways of the Rokaj._";
	text2 = "_They have a point. Once, raiders from the Low Dhaga would never have raided this land with such ease. Haven has had a pacifying influence. Here, I mean. Not inland._";

begintalknode;
	state = 72;
	nextstate = 74;
	condition = 1;
	question = "_What is in the Kranas Woods?_";
	text1 = "_Thick forest. It has not been heavily exploited. The Ro there tend toward nature worship. Understandable, given the strong natural magic._";
	text2 = "_This region has a number of mines that produce quality iron._";

begintalknode;
	state = 74;
	nextstate = -1;
	condition = 1;
	question = "_The woods are a source of iron? Seems odd._";
	text1 = "_You can find all sorts of metals in these peaks. The people of the Kranas like to dig mines, as it enables them to make a living while leaving their sacred groves alone._";

begintalknode;
	state = 74;
	nextstate = -1;
	condition = 1;
	question = "_There is strong natural magic there? Explain._";
	text1 = "_Oh, it's nothing unusual. Most of our vassals have regions with pockets of powerful natural magic. This tends to result in a crude form of worship. Harmless, as long as it's left alone._";
	text2 = "_The Kranas Woods have some sacred groves. Again, not unusual in Haven's vassals._";

begintalknode;
	state = 72;
	nextstate = 75;
	condition = 1;
	question = "_Tell me about the Low Dhaga._";
	text1 = "_These are the hills to the northeast. Very rocky, uneven terrain. Lots of valleys. A natural home for brigands and mirelings. Oh, sorry. They call them ka-wolves here. The raiders who attacked us came from there._";
	text2 = "_Their hills contain a variety of high-quality stone, mined for export._";

begintalknode;
	state = 75;
	nextstate = -1;
	condition = 1;
	question = "_Do they work the stone as well?_";
	text1 = "_Oh, yes! The Dhagans are talented architects and builders. Most of the buildings you see here were made by them. Haven's laws prevent them from building fortifications that would overly annoy us. Their workers still have much profitable work to do._";
	text2 = "_The walls of this fort were built by Dhagans. Just about the only part of [F0] that didn't collapse in our absence._";

begintalknode;
	state = 75;
	nextstate = -1;
	condition = 1;
	question = "_The raiders who attacked us are from there? So they hate us?_";
	text1 = "_Oh, I'm sure everyone in the Rokaj hates us. Most of them only hate us a tiny bit. Others, well, more._";
	text2 = "_However, the Low Dhaga is a land of raiders. They are more likely to act on their hate than most._";

begintalknode;
	state = 72;
	nextstate = 76;
	condition = 1;
	question = "_What is the High Litha?_";
	text1 = "_The highest, coldest peaks of the Rokaj. I don't know much of them. In fact, Haven knows surprisingly little about what is up there. Few people. Cold, taciturn, and fierce._";
	text2 = "_There are tales, though. Lots of mountain spirits. Mad shamans who talk to them. And ... Well, they control the Ro, in their way. They are best kept happy._";

begintalknode;
	state = 76;
	nextstate = -1;
	condition = 1;
	question = "_Any precious resources up there?_";
	text1 = "_They do have something very precious: quicksilver. There are deposits of it in the ores of their peaks. Some of their shamans drink it to stay properly mad. The rest is traded for food and supplies._";

begintalknode;
	state = 76;
	nextstate = -1;
	condition = 1;
	question = "_They control the Ro? How?_";
	text1 = "_We are not entirely sure. They are a fierce and remote people. The High Litha is said to be where the true spirit of the Ro is stored. Their opinions have a great influence on how the rest of the Ro acts._";
	text2 = "_Haven doesn't really understand the process. Perhaps you can learn more!_";
	text3 = "(Stonehouse whispers, _Or freeze to death trying._)";
	
begintalknode;
	state = 70;
	nextstate = 77;
	condition = gf(1,28) > 0;
	question = "_Tell me about the beliefs of the Rokaj._";
	text1 = "_Honestly, it is hard to get accurate information about them. Previous accounts of the Ro tend to be colored with excessive hatred and fear._";
	text2 = "(Stonehouse says, _Excessive is not the word I would use. Appropriate, maybe._)";
	text3 = "_They have been conquered by many empires, and their jagged, hostile land has bred a nation of fierce warriors._";
	
begintalknode;
	state = 77;
	nextstate = -1;
	condition = 1;
	question = "_Their ferociousness is well-known._";
	text1 = "_Yes. The Ro can be surprisingly hard to provoke. Once a blade is drawn, however, the one who wields it is determined to win or die._";
	text2 = "_The Ro who drinks and chats with you one day might try to kill you the next. Once he attacks, he will be difficult to defeat. Even for a Havenite._";

begintalknode;
	state = 77;
	nextstate = -1;
	condition = 1;
	question = "_They are conquered a lot._";
	text1 = "_History records three unsuccessful occupations before ours. Each seemed to be going well for years. Then weakness was shown, and the Rokaj struck back. They attempted to defeat Haven a century ago._";
	text2 = "(_And they are also trying right now,_ Stonehouse helpfully adds.)";

begintalknode;
	state = 77;
	nextstate = 78;
	condition = 1;
	question = "_Why are the Ro so hard to understand?_";
	text1 = "Sage Harlan chuckles and gives his stacks of books a reproachful look. _There is a concept in the Rokaj, unique among our vassals. Each Ro carries within something called a Deep Truth._";

begintalknode;
	state = 78;
	nextstate = -1;
	condition = 1;
	question = "_Deep Truth?_";
	text1 = "_What the person truly believes. It is stored like a treasure, deep within, never shared. Never revealed. As long as the Deep Truth is still there, a Ro can do whatever it takes to survive._";
	text2 = "_However, this means that most you meet will never, ever tell you what they actually believe. It makes learning about them a delightful challenge._";

begintalknode;
	state = 70;
	nextstate = 79;
	condition = gf(1,24) < 2 && gf(1,28) > 0;
	question = "_You are trying to learn about the Rokaj. Need any help?_";
	text1 = "For the barest hint of a moment, you see a glint of greed in Harlan's eye. You recognize this look well. When you are a [P], everyone wants something from you.";
	text2 = "_Haven knows so little about the Rokaj. We have not explored it seriously for twenty years. What have they learned? What do they believe? The libraries of Haven ache for fresh books._";

begintalknode;
	state = 79;
	nextstate = 80;
	condition = 1;
	question = "_What do you need?_";
	text1 = "_There are many learned people about the Rokaj. The Erudico, their caste of researchers, is still active. They have many shamans, many sages. See if you can get books from them. Books that reflect what they have learned in the last few decades._";
	text2 = "_If you can bring them to me, I can use them to increase the wealth of all of Haven._";
	code = 
		set_flag(1,24,1);
		toggle_quest(16,1);
	break;

begintalknode;
	state = 79;
	nextstate = -1;
	condition = gf(1,24) == 0;
	question = "_Well, good luck with that._";
	text1 = "_Oh. Of course. Thank you, [P]. I will continue to do my best._";
	action = END_TALK;
	
begintalknode;
	state = 80;
	nextstate = -1;
	condition = 1;
	question = "_Where might these books be found?_";
	text1 = "_Anywhere, I think, but you are most likely to find them around the Erudico or other shamans. Don't take any risks, of course._";
	text2 = "(Stonehouse says, _Yes. No risk. That is what everyone who wants something says._)";
	text3 = "_I have learned of some works that might be valuable._ He points at a journal on a nearby podium. _My notes are there._";
	
begintalknode;
	state = 70;
	nextstate = 81;
	condition = gf(1,24) == 1;
	question = "_I have hunted for your books._";
	text1 = "Sage Harlan's eyes gleam with greed. _I am so glad you remembered my humble request. What did you find?_";

begintalknode;
	state = 81;
	nextstate = -1;
	condition = has_spec_item(30) > 0 && gf(1,18) == 0;
	question = "_I found a book called 'Erudico Principles'._ (Give it to him.)";
	text1 = "Harlan takes the book, dusts it off, and flips through it eagerly.";
	text2 = "_This book is a bit older. It contains basic principles of natural philosophy. Some obtained from outsiders, but some of their own as well. Most of this is known, but I think we can glean some new techniques from this._";
	text3 = "_Thank you so much, [P]. I will see that this is copied and placed in the libraries of Haven._";
	code =
		award_party_xp(40);
		sf(1,18,1);
		set_spec_item(30,-1);
	break;

begintalknode;
	state = 81;
	nextstate = -1;
	condition = has_spec_item(31) > 0 && gf(1,19) == 0;
	question = "_I found a book called 'Erudico Earth Law'._ (Give it to him.)";
	text1 = "Harlan takes the book, dusts it off, and flips through it eagerly.";
	text2 = "_Ahhhh ... This is a work of alchemy. But true alchemy, the mixing of known substances to make new substances. The Rokaj has been very active in this area. We can learn from this._";
	text3 = "_Thank you so much, [P]. I will see that this is copied and placed in the libraries of Haven._";
	code =
		award_party_xp(40);
		sf(1,19,1);
		set_spec_item(31,-1);
	break;

begintalknode;
	state = 81;
	nextstate = -1;
	condition = has_spec_item(32) > 0 && gf(1,20) == 0;
	question = "_I found a book called 'Erudico Sky Signs'._ (Give it to him.)";
	text1 = "Harlan takes the book, dusts it off, and flips through it eagerly.";
	text2 = "_This is a work of astronomy. The High Litha has the most enviable views of the sky, and they have detected stars and patterns we may not know of yet. Intriguing._";
	text3 = "_Thank you so much, [P]. I will see that this is copied and placed in the libraries of Haven._";
	code =
		award_party_xp(40);
		sf(1,20,1);
		set_spec_item(32,-1);
	break;
	
begintalknode;
	state = 81;
	nextstate = -1;
	condition = has_spec_item(33) > 0 && gf(1,21) == 0;
	question = "_I found a book called 'Beasts of the Groves'._ (Give it to him.)";
	text1 = "Harlan takes the book, dusts it off, and flips through it eagerly.";
	text2 = "_This lists the magic monstrosities observed around the groves of the Kranas. Some of these creatures are common manifestations, but others are rare or unknown. Extremely intriguing._";
	text3 = "_Thank you so much, [P]. I will see that this is copied and placed in the libraries of Haven._";
	code =
		award_party_xp(40);
		sf(1,21,1);
		set_spec_item(33,-1);
	break;
	
begintalknode;
	state = 81;
	nextstate = -1;
	condition = has_spec_item(34) > 0 && gf(1,22) == 0;
	question = "_I found a book called 'Layers of Stone'._ (Give it to him.)";
	text1 = "Harlan takes the book, dusts it off, and flips through it eagerly.";
	text2 = "_Interesting. The Low Dhagans have spent many years studying the exposed strata of their hills. They have some truly remarkable theories about what the actual age of the hills is. What an amusing thing to study!_";
	text3 = "_Thank you so much, [P]. I will see that this is copied and placed in the libraries of Haven._";
	code =
		award_party_xp(40);
		sf(1,22,1);
		set_spec_item(34,-1);
	break;
	
begintalknode;
	state = 81;
	nextstate = -1;
	condition = has_spec_item(35) > 0 && gf(2,21) == 0;
	question = "_I found a book called 'Lies of the Dead'._ (Give it to him.)";
	text1 = "Harlan takes the book, dusts it off, and flips through it eagerly.";
	text2 = "_What a strange book. The ... Misttalkers? That is what they are called? They talk to the shades, and they have catalogued all the ways their dead elders can lie to them. How unique!_";
	text3 = "_Thank you so much, [P]. I will see that this is copied and placed in the libraries of Haven._";
	code =
		award_party_xp(40);
		sf(2,21,1);
		set_spec_item(35,-1);
	break;

begintalknode;
	state = 81;
	nextstate = 70;
	condition = 1;
	question = "_I don't have any books to give you right now._";
	text1 = "_Completely understandable. I am honored that you thought my request even worthy of your notice._";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = (gf(1,18) > 0 && gf(1,19) > 0 && gf(1,20) > 0 && gf(1,21) > 0 && gf(1,22) > 0 && gf(2,21) > 0) && gf(1,24) == 1;
	question = "_Have I brought you enough books to be helpful?_";
	text1 = "_You have increased Haven's knowledge more than I ever thought possible. Even better, combing through these books, I found a number of facts of immediate application to your struggle._ He gives you several scrolls.";
	text2 = "_Take this information to the Tower of the Erudico. I know that their crafters can make wondrous things. This knowledge will be of value._";
	code = 
		set_flag(1,24,2);
		toggle_quest(16,10);
		award_party_xp(MED_QUEST_XP);
		change_crafting(0,2,0,0,0);
		reward_give(408);
	break;		



// Stonehouse

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = "Waiting outside your quarters, you find Stonehouse. He has been your butler since you were a small child. Now, while you were being stalked by brigands and carrying the weight of the world on your shoulders, he has been here. Hiding. Safe and comfortable.";
	text2 = "He hands you a warm, moist towel as you approach, to clean the dirt of the road from your face. His eyes have his usual mix of terror, despair, and quiet resignation. _Hello, [P]. As always, I await your command._";
	text5 = "Stonehouse waits patiently to one side, ready to provide assistance. His shoulders sag slightly, reflecting the great weight life has placed upon them.";
	action = INTRO;
	code =
		set_dialogue_pic(817);
	break;

begintalknode;
	state = 100;
	nextstate = 101;
	condition = gf(1,29) == 0;
	question = "_Stonehouse, you abandoned me when I was in need!_";
	text1 = "_I am so sorry, [P]. Prince Sutter directed me to come here and prepare your rooms while you were at the port. I attempted to reach you through the hordes of screaming bandits running everywhere, but I could not single-handedly battle my way through._";

begintalknode;
	state = 100;
	nextstate = 101;
	condition = gf(1,29) == 0;
	question = "_Stonehouse, I was denied my customary breakfast!_";
	text1 = "_I am so sorry, [P]. Prince Sutter directed me to come here and prepare your rooms while you were at the port. I would have rushed to your side, but being impaled by savage brigands would have delayed your meal indefinitely._";

begintalknode;
	state = 100;
	nextstate = 101;
	condition = gf(1,29) == 0;
	question = "_Stonehouse, my clothing desperately needs tending to._";
	text1 = "_I am so sorry, [P]. Prince Sutter directed me to come here and prepare your rooms while you were at the port. I can see that the raiders have left a variety of stains on your garments. I will do my best to remove the blood and similar liquids with all speed._";

begintalknode;
	state = 100;
	nextstate = 101;
	condition = gf(1,29) == 0;
	question = "_Stonehouse, why are you lurking back here like a coward?_";
	text1 = "_I am so sorry, [P]. Prince Sutter directed me to come here and prepare your rooms while you were at the port. When the raiders attacked, I failed to emerge and single-handedly battle them, as my death would only free me from my servitude._";
	
begintalknode;
	state = 101;
	nextstate = -1;
	condition = 1;
	question = "_I apologize, Stonehouse. I know you were doing your best under very difficult circumstances._";
	text1 = "You would never say that.";

begintalknode;
	state = 101;
	nextstate = 100;
	condition = 1;
	question = "_Remind me to have you flogged when we are home._";
	text1 = "_Of course, [P]. I will make a note of it. I truly deserve no better. Before the time for my just punishment arrives, is there anything I can do for you?_";
	code =
		sf(1,29,1);
	break;

begintalknode;
	state = 101;
	nextstate = 100;
	condition = 1;
	question = "_As long as you are very sorry._";
	text1 = "_I am sorry, [P]. Regret consumes me. Guilt devours my insides. Though I am unworthy to ask, is there anything I can do for you?_";
	code =
		sf(1,29,1);
	break;

begintalknode;
	state = 101;
	nextstate = 100;
	condition = 1;
	question = "_I will give you just this one chance to redeem yourself._";
	text1 = "_Of course, [P]. As your own words have repeatedly indicated, I have failed at every single previous attempt at redemption. Thus, your faith in me at this late date is pure gratification. Is there anything I can do for you to begin this journey?_";
	code =
		sf(1,29,1);
	break;
	
begintalknode;
	state = 100;
	nextstate = -1;
	condition = gf(1,29) > 0;
	question = "_Any messages for me?_";
	text1 = "_The mirror downstairs has been gleaming with powerful, barely controlled magic. Being near it makes my skin burn. This usually signifies that someone at Sharyn's Palace wishes to speak with you._";
	text2 = "_Chief Cestus asked me to ask you to go to the meeting hall. There is some issue that requires your judgment._";
	text3 = "_I go downstairs to check the mirror frequently. It is currently silent._";
	code =
		cs();
		
		i = 0;
		//if ((char_ok(49)) || (char_ok(50)) ||  (char_ok(53)) ||  (char_ok(54)) ||  (char_ok(55)) ||  (char_ok(56)) ||  (char_ok(57)) ||  (char_ok(58)) ||  (char_ok(59)) ||  (char_ok(60)) ||  (char_ok(61)) ||  (char_ok(62)))
		//	i = 1;
			
		if ((i == 0) && (portal_convo() == 0))
			as(3);
		if (i > 0)
			as(2);
		if (portal_convo() > 0)
			as(1);
	break;
	
begintalknode;
	state = 100;
	nextstate = 103;
	condition = gf(1,29) > 0;
	question = "_I have a job for you._";
	text1 = "_Of course. The Queen has had me join you on your long, long travels to make sure that you are presentable. She wishes for a certain image Haven's envoys need to project when dealing with our vassals. How may I be of service?_";

begintalknode;
	state = 103;
	nextstate = -1;
	condition = gf(0,24) == 0;
	question = "_I have had a hard journey. I need a refreshing beverage._";
	text1 = "Stonehouse presents you with a mug of thick, salty liquid. _Alas, until the supply situation improves, our only available drink is this thick concoction made by the locals._";
	text2 = "You swig it down. It tastes like fermented blood. In character for the Rokaj, you suppose. It does the job.";
	code =
		sf(0,24,1);
	break;

begintalknode;
	state = 103;
	nextstate = -1;
	condition = gf(0,25) == 0;
	question = "_My armor and weapons must be polished._";
	text1 = "_Indeed. The Rokaj exists in a state of constant warfare, so I brought my best polishes and brushes. It will be done._";
	code =
		sf(0,25,1);
	break;

begintalknode;
	state = 103;
	nextstate = -1;
	condition = gf(0,26) == 0;
	question = "_I need my clothes cleaned and pressed._";
	text1 = "_The Rokaj deserve to see what a truly civilized person looks like. I will make sure that your garments speak only the best of Haven._";
	code =
		sf(0,26,1);
	break;

begintalknode;
	state = 107;
	nextstate = -1;
	condition = gf(0,27) == 0;
	question = "_My hair is unsightly. I need a trim._";
	text1 = "Stonehouse produces a pair of scissors and a towel from somewhere in his pockets. He sets you up on a chair by the wall and, with a series of fast, efficient motions, cleans you up a bit.";
	text2 = "The styling is not up to his usual quality. You detected a tiny tremor in his hands. Probably terror. You make a mental note to yell it out of him later.";
	code =
		sf(0,27,1);
	break;
	
begintalknode;
	state = 103;
	nextstate = 100;
	condition = 1;
	question = "_That's all I need._";
	text1 = "_I will be here if you need more._";
	
begintalknode;
	state = 100;
	nextstate = 104;
	condition = gf(1,29) > 0;
	question = "_I need some information._";
	text1 = "Stonehouse nods. You have always used him as a conduit to find out what your family and the lower classes are thinking. You can get a variety of information from him.";

begintalknode;
	state = 104;
	nextstate = -1;
	condition = 1;
	question = "_Are we making progress bringing civilization to the Rokaj?_";
	text1 = "_Not yet. Right now, I am still gathering my basic supplies. I can only provide the standard living of a very poor merchant or a very successful peasant._";
	text2 = "_Not really. I am trying to establish contacts in Laskara so that we can obtain basic snacks and fripperies._";
	text3 = "_Some progress. Our kitchen is now capable of making things that are not roasted meat. With work, we might obtain a vegetable._";
	text4 = "_Good progress. I had already packed quality sheets and a pillow for you. Now, through skilled trading, I have obtained a second pillow._";
	text5 = "_I am gaining experience dealing with the Rokaj. We have suppliers, and they know not to sell us any meat that could once talk, laugh, or feel love._";
	text6 = "_You will be happy to know that our contacts at the port of Laskara are fully established. You will soon have wine and ale at your meals to supplement the fermented blood drink._";
	text7 = "_We have done much, but I think we have reached our limits of luxury until you are able to open the portal back to Sharyn's Palace._";
	code =
		cs();
		if (current_score() == 0)
			as(1);
		else if (current_score() > 10)
			as(7);
		else if (current_score() > 8)
			as(6);
		else if (current_score() > 6)
			as(5);
		else if (current_score() > 4)
			as(4);
		else if (current_score() > 2)
			as(3);
		else as(2);
	break;

begintalknode;
	state = 104;
	nextstate = -1;
	condition = 1;
	question = "_What does my mother think of me?_";
	text1 = "_I am afraid that you have not worked to pacify the Rokaj in the manner your mother approves of. You have not followed her principles or acted for the good of Haven. She will be displeased._";
	text2 = "_You have shown a tendency to not act in a way your mother would approve of. You do not seem overly concerned with the good of Haven._";
	text3 = "_I am unable to determine either way. You have not acted decisively for or against the interests of Haven._";
	text4 = "_You have shown a surprising tendency toward acting in the interest of Haven. The Rokaj project is progressing well. Your mother will be guardedly pleased._";
	text5 = "_You have shown a strong and consistent tendency toward reclaiming control of the Rokaj and acting in the interest of Haven. I think your mother will be very pleased._";
	code =
		cs();
		if (gf(80,7) <= 85)
			as(1);
		else if (gf(80,7) <= 99)
			as(2);
		else if (gf(80,7) <= 115)
			as(3);
		else if (gf(80,7) <= 125)
			as(4);
		else as(5);
	break;
	
begintalknode;
	state = 104;
	nextstate = -1;
	condition = 1;
	question = "_Do I have a reputation for strength or weakness?_";
	text1 = "_They have found you to be a consistently peaceful and mild envoy of Haven. A few will trust you more because of this. Many of the Ro will instinctively try to take advantage of your good nature._";
	text2 = "_You have shown a tendency to be merciful and mild in your dealings with the Rokaj. A few Ro will take this for goodness. Many others, weakness._";
	text3 = "_I am unable to determine either way. You have not acted particularly kind or particularly cruel._";
	text4 = "_Your actions have tended to the brutal and violent. This will cause some to submit to you in fear. Others may become determined to resist you. The Ro are hard to intimidate._";
	text5 = "_Your actions are consistently brutal and violent. A few Ro are terrified and will submit to you in fear. Others have become even more determined to resist Haven._";
	code =
		cs();
		if (gf(80,6) <= 85)
			as(1);
		else if (gf(80,6) <= 95)
			as(2);
		else if (gf(80,6) <= 105)
			as(3);
		else if (gf(80,6) <= 115)
			as(4);
		else as(5);
	break;
	
begintalknode;
	state = 104;
	nextstate = -1;
	condition = 1;
	question = "_What do the people of the Rokaj think of me?_";
	text1 = "_The people of the Rokaj have a powerful dislike of you. Of course, they hate all civilization. But they hate you more than most._";
	text2 = "_From the rumors I hear, you have caused the Rokaj to hate and distrust Haven more than they did before. So if you care about their opinion, and you shouldn't, there it is._";
	text3 = "_I am unable to determine either way. The Rokaj is waiting for you to show your feelings toward them in one way or the other._";
	text4 = "_From the rumors I hear, the Rokaj is developing tentative feelings of respect and affection for you. The way they are, they will probably try to take advantage of this as much as possible._";
	text5 = "_The Rokaj is developing respect and even affection for you. You are making them more content with being a vassal of Haven. So if you wanted the admiration of these violent brutes, you have it._";
	code =
		cs();
		if (gf(80,16) <= 90)
			as(1);
		else if (gf(80,16) <= 105)
			as(2);
		else if (gf(80,16) <= 120)
			as(3);
		else if (gf(80,16) <= 140)
			as(4);
		else as(5);
	break;

begintalknode;
	state = 104;
	nextstate = -1;
	condition = 1;
	question = "_How am I progressing in reclaiming this colony?_";
	text1 = "_Your work is barely begun. You should speak with General Miranda and learn how to rebuild this fort._";
	text2 = "_You have been given an actual mission to perform, so that we can quit this horrible place. Go to the provinces of the Rokaj. Address the grievances of the Raasas. Meet with your Governors and determine if they are adequate._"; 
	text3 = "_Report your findings to General Miranda. Then the Queen should be satisfied and we can leave._";
	text4 = "_The Rokaj demanded that you go to Prova Krug to answer their challenge. Very dangerous. Completely inappropriate. Perhaps it can help prevent a rebellion. It's unwise to go, but you've always had a rebellious spirit._";
	text5 = "_I think we are completely done here and it is time to go home._";
	code =
		cs();
		if (gf(80,15) > 2)
			as(5);
			else if (gf(80,12) >= 8)
				as(4);
			else if (gf(0,11) < 12)
				as(1);
			else {
				as(2); as(3);
				}

	break;

begintalknode;
	state = 104;
	nextstate = 100;
	condition = 1;
	question = "_That is all._";
	text1 = "_Come check in with me again later. I will continue to listen and learn._";

begintalknode;
	state = 100;
	nextstate = -1;
	condition = gf(1,29) > 0;
	question = "_That is all, then._";
	text1 = "_Then I will wait here until you return. Pondering, perhaps, what I could have done to deserve a life of such good fortune._";
	text2 = "_Then I will wait here until you return._";
	text3 = "_I am so happy to have been of help._";
	text4 = "_Thank you, [P]. With your permission, I will go off and think of other ways to please you._";
	text5 = "_Thank you, [P]. Your approval does so much to tamp down my unending despair._";
	action = END_TALK;
	code =
		cs();
		as(get_ran(1,1,5));
	break;


// JUDGMENT 1

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = "This is the Audience Hall of [F0], where matters of great import are discussed and major decisions are made. The obsolete Chief of the fort is sitting at the head table. Before her, a young warrior of the Ro stands proudly in chains.";
	text2 = "Chief Cestus turns to look at you. _Ah! [P] [N]! We are honored that you have arrived. We are facing a very difficult decision right now. It is important enough, in this troubled time, that the wisdom of royalty would be invaluable._";
	text3 = "She nods toward the silent, proud Ro warrior. _This is Dastan, a warrior of the Gentle Coast. He is on trial._";
	code =
		award_party_xp(20);
		sf(92,20,1);
	break;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "_Hello, Dastan._";
	text1 = "Dastan stares straight ahead, ignoring you. It looks like he has been punched repeatedly in the face recently.";

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "_Do I need to deal with this? I am very busy._";
	text1 = "Chief Cestus clears her throat. _Of course, you will be able to pass judgment back to me. However, for these difficult cases, I am ordered to pass them upstairs to Havenites with greater authority. Like you._";

begintalknode;
	state = 130;
	nextstate = 131;
	condition = 1;
	question = "_What is Dastan's crime?_";
	text1 = "As Chief Cestus speaks, you note that the Havenite guards are scowling at Dastan. Lots of hatred in the room right now. _A drunken brawl with tragic results. Dastan was in an alley fight with one of Haven's soldiers. Scout Chanse was the name._";
	text2 = "_Chanse was killed. Dastan stumbled out of the alley with a bloody blade and was apprehended._";

begintalknode;
	state = 131;
	nextstate = 132;
	condition = 1;
	question = "_He slew one of Haven's soldiers?_";
	text1 = "_He did._ The Havenites nod angrily. _Of course, when a vassal kills a Havenite, it is a truly serious matter. There is no question of guilt. Now a punishment must be given._";

begintalknode;
	state = 132;
	nextstate = -1;
	condition = 1;
	question = "_What do we know about this crime?_";
	text1 = "_No surprises, really. A crowded bar in Laskara. Lots of drinking. Angry words were exchanged, no doubt inflamed by the recent raids and the attempt on your life. Someone suggested that the two warriors duel in the alley outside._";
	text2 = "_The duel took place. Dastan won._";

begintalknode;
	state = 132;
	nextstate = -1;
	condition = 1;
	question = "_What do you have to say for yourself, Dastan?_";
	text1 = "Dastan turns and looks you dead in the eye. _I thought we would fight with hands. A matter of honor. Your Chanse was losing. He drew his sword and came at me. The coward. I drew my sword and cut him down. I defended myself, as is my right._";

begintalknode;
	state = 132;
	nextstate = -1;
	condition = 1;
	question = "_And Scout Chanse was from Haven?_";
	text1 = "Chief Cestus says, _He was not Haven-born. He was from Achaemin, the next country to the west. A sworn soldier of Haven's army, with a decent record._";

begintalknode;
	state = 132;
	nextstate = 133;
	condition = 1;
	question = "_And what do you expect me to do?_";
	text1 = "_Tell us what must be done with Dastan. It is delicate. If he is spared, Haven will look weak and Havenites will be angry at you. If you punish him, the Ro will see this as an injustice. Unpleasant. Thus, I refer to you._";
	text2 = "_We have no reason to question the facts of the case. Self-defense, but a vassal killed a sworn soldier of Haven._";

begintalknode;
	state = 133;
	nextstate = -1;
	condition = 1;
	question = "_Any advice, Cestus?_";
	text1 = "Chief Cestus clears her throat nervously. _If I knew the best judgment, I would have given it already._";
	text2 = "The scowls of the soldiers of Haven in attendance leave no doubt what they would do.";

begintalknode;
	state = 133;
	nextstate = -1;
	condition = 1;
	question = "_And if I choose not to decide?_";
	text1 = "_Then I will have to sentence Dastan to death. I am a soldier of Haven. I must look after our interests._";

begintalknode;
	state = 133;
	nextstate = -1;
	condition = 1;
	question = "_Are we sure it was self-defense?_";
	text1 = "_Two walked into the alley. One walked out. We can never know what the truth of the story is. I'm sure that Dastan's Deep Truth is that he was in the right._ Dastan doesn't respond.";

begintalknode;
	state = 133;
	nextstate = 134;
	condition = 1;
	question = "_I have made my decision._";
	text1 = "The air in the hall grows very still. All lean forward, awaiting your decision.";

begintalknode;
	state = 134;
	nextstate = 135;
	condition = 1;
	question = "_Decide for yourself, Cestus._";
	text1 = "Chief Cestus lets out a heavy sigh. _If that is your order, I must obey. I sentence Dastan to swift death. Get this troublemaker out of here._ Your soldiers grin. Dastan walks out of the hall with head held high.";
	text2 = "_The Gentle Coast will be angry. The Ro will be angry. But they are always angry._";
	code =
		ro_faction(-2);
		inc_flag(80,2,1);
	break;
	
begintalknode;
	state = 134;
	nextstate = 135;
	condition = 1;
	question = "_Dastan should be executed._";
	text1 = "Chief Cestus nods. _Nobly and decisively ordered, [P]. I sentence Dastan to swift death. Get this troublemaker out of here._ Your soldiers grin. Dastan walks out of the hall with head held high.";
	text2 = "_The Gentle Coast will be angry. The Ro will be angry. But they are always angry._";
	code =
		queen_faction(1);
		ro_faction(-2);
		violence(3);
		inc_flag(80,2,1);
	break;

begintalknode;
	state = 134;
	nextstate = 135;
	condition = 1;
	question = "_Just flog Dastan. Then send him home._";
	text1 = "Chief Cestus nods. _So declared, [P]. I sentence Dastan to public flogging. Get him out of here._ Your soldiers look away from you, failing to conceal their anger. Dastan walks out of the hall with head held high.";
	text2 = "_The Gentle Coast will be annoyed. The Ro will be angry. But they are always angry._";
	code =
		queen_faction(0);
		violence(-1);
		ro_faction(-1);
	break;

begintalknode;
	state = 134;
	nextstate = 135;
	condition = 1;
	question = "_There is not enough evidence. Free him._";
	text1 = "Chief Cestus nods. _So declared, [P]. Slaying Haven's warriors is permitted now. Dastan will be released immediately._ Your soldiers look away from you, failing to conceal their anger. Dastan walks out of the hall with a smirk on his face.";
	text2 = "_The Gentle Coast and the Ro will be very pleased with this. As for Haven's opinion, it hardly matters. You are the [P]._";
	code =
		queen_faction(-2);
		ro_faction(2);
		violence(-3);
		inc_flag(80,2,-1);
	break;

begintalknode;
	state = 135;
	nextstate = -1;
	condition = 1;
	question = "_It seems like, whatever I choose, someone will be angry at me._";
	text1 = "_Of course. That is the way of the Rokaj. Anger and grudges, heaped on more anger and grudges. If a decision will make someone angry, then it becomes a diplomatic matter. Then, if I can, I refer it to you._";
	
begintalknode;
	state = 135;
	nextstate = -1;
	condition = 1;
	question = "_I'll be going now. I will be happy to help with future cases._";
	text1 = "Chief Cestus nods happily. _Of course. You are very kind. When you visit General Miranda, I will be here, cleaning up mess after mess. Thank you, [P]._";
	action = END_TALK;
	code =
		erase_char(49);
	break;
	
begintalknode;
	state = 135;
	nextstate = -1;
	condition = 1;
	question = "_I'll be going now. I will be happy to not be bothered by you again._";
	text1 = "Chief Cestus looks even unhappier than before. _Of course, that is your privilege. However, there are times when I am ordered to consult with you. When you visit General Miranda, I will be here, cleaning up mess after mess. Safe travels, [P]._";
	action = END_TALK;
	code =
		erase_char(49);
	break;

// JUDGMENT 2

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = "Once again, Chief Cestus is holding court in the Audience Hall of [F0]. This time, a middle-aged noble of the Rokaj stands in front of her. The man before you is not in chains. He wears the furs and carries the blade of a Ro warrior. However, the furs are expensive and the sword is ceremonial.";
	text2 = "This man is clearly wealthy, and his equipment is more for fashion than battle. He hasn't seen a fight in many years. He bows deeply to you, and Chief Cestus says, _[P] [N], you have a diplomatic visit._";
	code =
		award_party_xp(20);
		sf(92,21,1);
	break;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "_More problems for me, Cestus?_";
	text1 = "The noble of the Rokaj looks confused. Cestus hastily says, _Um, I don't think so. Not a hostile visit, I think._";

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "_And what horrible crime has this man committed?_";
	text1 = "Chief Cestus shakes her head hastily. _No crime. Crimes have been committed against you, yes, but this wise noble has come on a mission of peace. Yes?_ The Ro nods, increasingly concerned.";

begintalknode;
	state = 160;
	nextstate = 161;
	condition = 1;
	question = "_Who are you, Ro?_";
	text1 = "The man bows again. An unusually servile gesture for a man of the Ro. _I am Head Jadyra, noble [P] of Haven. I have come on behalf of myself and the noble lords of the Gentle Coast. We understand that the Rokaj has given you a grievous insult recently._";

begintalknode;
	state = 161;
	nextstate = 162;
	condition = 1;
	question = "_Yes. Ro raiders tried to kill my brother and me._";
	text1 = "_And this was a horrible crime. A grievous insult. We want to communicate to you, very clearly, that the Gentle Coast does not approve of this act. We bring gifts to you, to try to atone in some small way for this shameful act._";

begintalknode;
	state = 162;
	nextstate = -1;
	condition = 1;
	question = "_Tell me about the Gentle Coast._";
	text1 = "_We are the learned, thoughtful people of the Rokaj. We recognize how much good Haven has brought to our backward land, and we have been brought great wealth and safety thanks to our alliance with you._";
	text2 = "_The other provinces of the Rokaj are unwise. They don't appreciate you as we do._";

begintalknode;
	state = 162;
	nextstate = 163;
	condition = 1;
	question = "_Yes. Atonement. Go on._";
	text1 = "_As a humble gift, we offer you two chests. One full of gold, the other containing the precious and rare products of the Ro. We can also deliver a regular shipment of wood to rebuild your forts._";
	text2 = "_We hope this will make it clear that we have nothing to do with the ignorant and ungrateful savages up in the higher wilds._";

begintalknode;
	state = 163;
	nextstate = -1;
	condition = 1;
	question = "_You are calling your fellow Ro savages?_";
	text1 = "_I am afraid so. The Ro farther from the coasts cling to the savage old ways, ignoring the superior way of life Haven provides. The Gentle Coast is ashamed of their ingratitude._";

begintalknode;
	state = 163;
	nextstate = -1;
	condition = 1;
	question = "_You are right. They are savage._";
	text1 = "_We know that you are going to need to discipline them. It can't be avoided. We only hope you remember our humble gifts when deciding what to do to the Gentle Coast._";

begintalknode;
	state = 163;
	nextstate = 164;
	condition = 1;
	question = "_I happily accept your gifts._";
	text1 = "Head Jadyra bows so low his long hair brushes against the floor. _The gifts will be delivered. Thank you again, [P]. With your leave ..._ He walks out of the hall.";
	code =
		change_coins(100,1);
		change_crafting(1,1,0,0,0);
		activate_mine_resource(1);
		ro_faction(1);
	break;
	
begintalknode;
	state = 163;
	nextstate = 164;
	condition = 1;
	question = "_I happily accept your gifts, but you are not forgiven until the attackers are punished._";
	text1 = "Head Jadyra bows so low his long hair brushes against the floor. _The [P] is both wise and merciful. The gifts will be delivered. Thank you again, [P]. With your leave ..._ He walks out of the hall.";
	code =
		change_coins(100,1);
		change_crafting(1,1,0,0,0);
		activate_mine_resource(1);
		queen_faction(1);
	break;

begintalknode;
	state = 163;
	nextstate = 164;
	condition = 1;
	question = "_I don't need your gifts. Just leave._";
	text1 = "Head Jadyra looks concerned. This isn't what he expected. Still, he bows so low his long hair brushes against the floor. _Then I apologize for wasting your time, [P]. I hope your time in the Rokaj is productive, and the Gentle Coast wishes you justice and happy hunting._";
	text2 = "_With your leave ..._ He walks out of the hall.";

begintalknode;
	state = 163;
	nextstate = 165;
	condition = 1;
	question = "_This man is trying to bribe me. Have him flogged._";
	text1 = "Both Chief Cestus and Head Jadyra are utterly shocked by this development. The Havenite soldiers snicker as a spluttering, terrified Jadyra is dragged from the hall.";
	code =
		inc_flag(80,2,1);
		ro_faction(-2);
		violence(3);
	break;
	
begintalknode;
	state = 164;
	nextstate = -1;
	condition = 1;
	question = "_Well, that was taken care of._";
	text1 = "Chief Cestus smiles. _Of course. Not all of these meetings are without profit. I want to make sure that you have the chance to benefit personally. All of Jadyra's tribute will be put at your disposal. Thank you, [P]._";
	text2 = "The audience has concluded.";
	action = END_TALK;
	code =
		erase_char(50);
	break;
	
begintalknode;
	state = 165;
	nextstate = -1;
	condition = 1;
	question = "_Well, that was taken care of._";
	text1 = "_Um, yes,_ Chief Cestus says, as Head Jadyra's howls reach you from outside. _I am afraid that the Gentle Coast might be a bit shocked by this. Still, you are the [P]. We must trust your wisdom._";
	text2 = "The audience has concluded.";
	action = END_TALK;
	code =
		erase_char(50);
	break;
		
// JUDGMENT 3

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = "A wild warrior of the Rokaj is waiting for you in the audience hall. He wears the thick, decorated leather armor of the Kranas Woods. Chief Cestus looks at him, perplexed. The Chief is very relieved when you arrive.";
	text2 = "She says, _[P] [N], this is Head Kuanysh. He holds lands in the Kranas Woods. He comes to us to ask for a boon._ Cestus then looks away, avoiding your gaze.";
	code =
		award_party_xp(20);
		sf(92,22,1);
	break;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "_So he isn't a criminal?_";
	text1 = "Head Kuanysh snorts. _No! I am a clan head of the Rokaj, trying to bring some wealth and order to the savage inner lands!_";

begintalknode;
	state = 190;
	nextstate = 191;
	condition = 1;
	question = "_Give me your petition, Head Kuanysh._";
	text1 = "Head Kuanysh looks at you. He is young and arrogant. You notice how well-crafted and expensive his armor is. _I am from a wealthy family of the Gentle Coast, now I lead my portion of our clan in the Kranas Woods._";
	text2 = "_There is a portion of our land I would like to log, providing needed wood for construction. However, I am prevented from using those trees. They are near a former sacred grove._";

begintalknode;
	state = 191;
	nextstate = -1;
	condition = 1;
	question = "_You are from the Gentle Coast, but you own land in the Kranas Woods?_";
	text1 = "_Correct. I sought my fortune in the Ro's savage inner lands. I purchased a healthy expanse of forest in the northern Kranas Woods and moved my family and our retainers there._";
	text2 = "_The Kranas Woods has plenty of unsettled land, waiting for the Gentle Coast to apply its industry and make it productive._";

begintalknode;
	state = 191;
	nextstate = -1;
	condition = 1;
	question = "_These woods are near a sacred grove?_";
	text1 = "_A former sacred grove. The spirits there fled recently, after Governor Yvette allowed other nearby woods to be logged. It is now only land, waiting to be used. With permission. The laws must be respected._";

begintalknode;
	state = 191;
	nextstate = 192;
	condition = 1;
	question = "_Why don't you just cut the trees down?_";
	text1 = "_The laws of the Rokaj and of Haven say that any woods near a sacred grove, even a dead one, can't be cut down without permission. Haven's permission._";
	text2 = "_This is to keep the druids of the Kranas Woods happy. As if anything could make those backward folk happy._";

begintalknode;
	state = 192;
	nextstate = 193;
	condition = 1;
	question = "_Whose permission do you need?_";
	text1 = "_The permission of a high official of Haven. Usually, we go to Governor Yvette for such permission. She usually will let clans like mine cut down whatever trees we want. As long as we provide consideration._";
	text2 = "Chief Cestus whispers, _That means gifts._ Kuanysh nods.";

begintalknode;
	state = 193;
	nextstate = 197;
	condition = 1;
	question = "_Why didn't you go to Governor Yvette?_";
	text1 = "_We did, of course. We didn't want to waste your time. However, every year, the size of the gifts Governor Yvette demands increases. My little clan in the deep woods is not that wealthy._";

begintalknode;
	state = 197;
	nextstate = 193;
	condition = 1;
	question = "_Our Governor demanded a bribe?_";
	text1 = "_I ... Umm ... Of course. Is that not usually the way of Haven? Don't your governors always demand pay for friendly judgment?_ Chief Cestus looks like she desperately wishes he was somewhere else.";

begintalknode;
	state = 193;
	nextstate = -1;
	condition = 1;
	question = "_What do you think of this, Cestus?_";
	text1 = "_I have many thoughts, [P], but none are worth your time. It doesn't seem like cutting down this remote bit of forest is a matter of importance. Though allowing it might anger the Kranas Woods._";

begintalknode;
	state = 193;
	nextstate = 194;
	condition = 1;
	question = "_I don't want to anger the Kranas Woods. Leave the trees alone._";
	text1 = "Head Kuanysh nods. _Of course, [P]. I know the custom. If you allow us to cut down those trees, you will be paid, in iron, gold, and amber. We are not a rich clan, but we are able to give a gift that justifies your attention._";

begintalknode;
	state = 193;
	nextstate = 194;
	condition = 1;
	question = "_I will give the permission. For a bribe._";
	text1 = "Head Kuanysh nods. _We know this, of course. I would not insult you by denying you a suitable offering. If you allow us to cut down those trees, you will be paid, in iron, gold, and amber. We are not a rich clan, but we are able to give a gift that justifies your attention._";

begintalknode;
	state = 194;
	nextstate = 196;
	condition = 1;
	question = "_Trying to bribe a [P] of Haven, eh? Take this man away and have him flogged._";
	text1 = "This is definitely not the response Head Kuanysh was expecting. Your guards have to drag him out of the hall by his ankles. Soon, his howls are echoing throughout [F0].";
	text2 = "Chief Cestus looks at you with ... Terror. Yes. Definitely terror.";
	code =
		violence(3);
		queen_faction(-2);
		ro_faction(2);
		inc_flag(80,2,1);
	break;

begintalknode;
	state = 194;
	nextstate = 196;
	condition = 1;
	question = "_Trying to bribe a [P] of Haven, eh? I want nothing you have to give. Get out of my sight._";
	text1 = "This is definitely not the response Head Kuanysh was expecting. Your guards have to drag him out of the hall by his arm. Soon, his shouts of anger echo throughout [F0].";
	text2 = "Chief Cestus looks at you with ... Respect. Yes. Hopefully respect.";
	code =
		queen_faction(-1);
		ro_faction(1);
	break;
	
begintalknode;
	state = 194;
	nextstate = 196;
	condition = 1;
	question = "_Your bribe is accepted._";
	text1 = "The business is soon concluded. The wealth is delivered. Chief Cestus draws up papers of permission, and you sign them. Head Kuanysh bows, flattered, and departs.";
	code =
		ro_faction(-2);
		inc_flag(80,2,-1);
		change_coins(100,1);
		change_crafting(0,0,2,0,0);
		activate_mine_resource(2);
	break;

begintalknode;
	state = 193;
	nextstate = 196;
	condition = 1;
	question = "_Just cut the trees down. I don't care._";
	text1 = "The business is soon concluded. The wealth is delivered. Chief Cestus draws up papers of permission, and you sign them. Head Kuanysh bows, flattered, and departs.";
	text2 = "He is ecstatic that no bribe was necessary.";
	
begintalknode;
	state = 196;
	nextstate = -1;
	condition = 1;
	question = "_It seems like I can get a lot of bribes around here._";
	text1 = "Chief Cestus nods. _Serving in the vassals is a hard life for a Havenite. Full of effort and danger. It is the ability to extract wealth from our vassals that draws our children to a life of service._";

begintalknode;
	state = 196;
	nextstate = -1;
	condition = 1;
	question = "_Is our business concluded, Chief Cestus?_";
	text1 = "_Indeed. Thank you for your time, [P]._";
	action = END_TALK;
	code =
		erase_char(51);
	break;
		
// JUDGMENT 4

begintalknode;
	tag = 220;
	state = -1;
	nextstate = 220;
	condition = 1;
	question = "Name";
	text1 = "This visit to [F0], there is no question that some criminal is being brought to you for judgment. Chief Cestus looks down on a young woman who has been thoroughly chained up. She has the complexion and ceremonial robes of the Kranas Woods.";
	text2 = "Chief Cestus is very relieved to see you. _Thank goodness, [P]. This is a case where I could truly use your great wisdom._";
	code =
		award_party_xp(20);
		sf(92,23,1);
	break;

begintalknode;
	state = 220;
	nextstate = 221;
	condition = 1;
	question = "_And who is this, Chief Cestus?_";
	text1 = "_Ahhh ... Yes._ She looks down at the young woman. The woman stares at you, unafraid. _This is Jansulu. She is a young druid of the Kranas Woods. Some of our newer soldiers caught her when she was taking three young children to one of their sacred groves. Very sick children._";
	text2 = "_It turns out that Jansulu was breaking one of Haven's more serious laws. Normally, our soldiers in the Ro would have ignored it. These soldiers were young. They didn't know._";
	text3 = "Jansulu shakes her head. _They think I am a criminal. A mission of mercy. That is what they stopped._";
	
begintalknode;
	state = 221;
	nextstate = -1;
	condition = 1;
	question = "_A mission of mercy?_";
	text1 = "Her expression is cold and utterly free of doubt. _A mission to end suffering. Of those broken, dying children. And of those who would have had to care for them._";
	text2 = "Chief Cestus carefully keeps her face free of expression.";

begintalknode;
	state = 221;
	nextstate = 222;
	condition = 1;
	question = "_Explain, Cestus._";
	text1 = "_Apparently, the children have various defects. Of mind and body. They are in our care now, though they will not be for long. They are all dying._";
	text2 = "_But Jansulu ... she was taking them. As ... as ..._";
	text3 = "Jansulu loses her patience. _They were a rightful sacrifice. To the groves!_";

begintalknode;
	state = 222;
	nextstate = 223;
	condition = 1;
	question = "_A sacrifice to the groves?_";
	text1 = "The druid looks up at you, unafraid. _The Kranas Woods are poor and hungry. We can't support the most warped of children. And the groves that protect us ... They must be fed with life._";
	text2 = "_So we feed the groves with those who commit crimes or who we can't support. It is hard and painful, but it is the way we sustain our lives. Not that the rich and sheltered of Haven would understand._";

begintalknode;
	state = 223;
	nextstate = -1;
	condition = 1;
	question = "_Cestus, Haven allows this practice?_";
	text1 = "Chief Cestus is desperately uncomfortable. _'Allow'? Well, 'allow' is a complex word. I mean, it is illegal, of course. Our law doesn't allow it. But here ... we may not have enforced that law as thoroughly as we might have._";
	text2 = "_But yes, Haven's laws forbid human sacrifice. In the strongest terms._";
	
begintalknode;
	state = 223;
	nextstate = -1;
	condition = 1;
	question = "_Jansulu, how can you do this?_";
	text1 = "_Those children were doomed. We mourn them, but we could not save them. So we gave them the greatest of gifts: They could serve the Rokaj. They could use their lives to support their people, in the only way available to them._";
	text2 = "Chief Cestus adds, _We have inspected the children, and she is correct. Their health is ... very poor. In a way our healers can't help. It is a sad tale in all ways._";
	
begintalknode;
	state = 223;
	nextstate = -1;
	condition = 1;
	question = "_Cestus, what are my options?_";
	text1 = "_Well, the Kranas Woods are ... The Rokaj tend to be attached to their ways. Jansulu broke our laws, true, but their savage practices have been tolerated for a long time. It was only an oversight in training that caused her to be arrested at all._";
	text2 = "_So, I ... I don't know._";

begintalknode;
	state = 223;
	nextstate = -1;
	condition = 1;
	question = "_Jansulu, what should I do about you?_";
	text1 = "_You should let me go, outsider! Tormentor! These are our sacred ways. You can't change them. If they are to be changed, it will be by us. You must let me go!_";
	text2 = "_As for the children, do what you want with them. They're yours now._";
	
begintalknode;
	state = 223;
	nextstate = 224;
	condition = 1;
	question = "_I have made a decision._";
	text1 = "Chief Cestus is relieved. Jansulu looks away from you. All of the guards look kind of sick.";

begintalknode;
	state = 224;
	nextstate = 225;
	condition = 1;
	question = "_Cestus, this disgusts me. Deal with it yourself._";
	text1 = "Chief Cestus says, _That is fair. Our neglect empowered the Kranas Woods. I should start to correct it. Jansulu, you have violated Haven's laws against human sacrifice. I sentence you to death._";
	text2 = "As Jansulu is hauled away to face justice, she screeches at you. The room grows warm. Her magical power is considerable. You are happy that they used so many chains to hold her.";
	text3 = "Chief Cestus says, _The Kranas Woods will be angry, but I think this is for the best._";
	code =
		queen_faction(-2);
		ro_faction(-2);
		inc_flag(80,3,1);
	break;
	
begintalknode;
	state = 224;
	nextstate = 225;
	condition = 1;
	question = "_Druid Jansulu, you have violated Haven's laws against human sacrifice. I sentence you to death._";
	text1 = "As Jansulu is hauled away to face justice, she screeches at you. The room grows warm. Her magical power is considerable. You are happy that they used so many chains to hold her.";
	text3 = "Chief Cestus says, _The Kranas Woods will be angry, but I think this is for the best._";
	code =
		queen_faction(2);
		ro_faction(-2);
		violence(3);
		inc_flag(80,3,1);
	break;

begintalknode;
	state = 224;
	nextstate = 225;
	condition = 1;
	question = "_Druid Jansulu, you have violated Haven's laws against human sacrifice. I sentence you to flogging._";
	text1 = "This sentence is incredibly merciful, but you receive no gratitude. As Jansulu is hauled away to face justice, she screeches at you. The room grows warm. Her magical power is considerable. You are happy that they used so many chains to hold her.";
	text3 = "Chief Cestus says, _An unfortunate half-solution. The Kranas Woods will see their way of life is threatened, but it is still allowed to continue. Of course, you are the [P]. I am sure that you are wise._";
	code =
		queen_faction(-2);
		ro_faction(-2);
		violence(1);
		inc_flag(80,3,1);
	break;

begintalknode;
	state = 224;
	nextstate = 225;
	condition = 1;
	question = "_Druid Jansulu, you are spared. Leave._";
	text1 = "The guards remove Jansulu's chains. She walks out of the hall without gratitude or a word of thanks. Cestus mutters, _Well, that's the Ro for you._";
	text2 = "_At least the Kranas Woods will be happy. Considering how unbalanced everything is, that may be a very good thing._";
	code =
		queen_faction(-2);
		ro_faction(2);
		violence(-3);
		inc_flag(80,3,-1);
	break;

begintalknode;
	state = 225;
	nextstate = 226;
	condition = 1;
	question = "_Cestus, give an order. Our soldiers should prevent all sacrifices in the Kranas Woods._";
	text1 = "Chief Cestus nods and writes the orders. _This will cause problems. Unrest. Yet, it probably should have been done some time ago._";
	code =
		queen_faction(2);
		ro_faction(-1);
	break;

begintalknode;
	state = 225;
	nextstate = 226;
	condition = 1;
	question = "_Cestus, give an order. Our soldiers should leave the Kranas Woods alone. We have enough problems._";
	text1 = "Chief Cestus nods and writes the orders. _Probably wise. The Rokaj is appalling, but we need to calm it. This battle can wait for another day._";
	code =
		queen_faction(-2);
		ro_faction(1);
		inc_flag(80,3,-1);
	break;

begintalknode;
	state = 226;
	nextstate = -1;
	condition = 1;
	question = "_This audience is concluded._";
	text1 = "_Yes, [P] Thank you._ Chief Cestus and her guards are relieved. Nobody enjoyed this.";
	action = END_TALK;
	code =
		erase_char(52);
	break;

		
// JUDGMENT 5

begintalknode;
	tag = 250;
	state = -1;
	nextstate = 250;
	condition = 1;
	question = "Name";
	text1 = "Once again, you interrupt Chief Cestus in the middle of passing judgment on some miscreant. This time, the prisoner is a soldier of Haven. She wears the robes of a mage, tattered from a long journey over the rough roads of the Rokaj.";
	text2 = "Chief Cestus is surprised by your arrival. Still, she manages to maintain her composure. _Ah. The [P]. There is no need for me to make judgments or demands here. This is Sage Aledra._";
	code =
		award_party_xp(20);
		sf(92,24,1);
	break;

begintalknode;
	state = 250;
	nextstate = 251;
	condition = 1;
	question = "_Hello, Sage Aledra._";
	text1 = "She looks up at you, her young face showing a bit of awe. She did not expect to meet a [P], even under these odd circumstances.";
	text2 = "Chief Cestus looks down at her. _Sage Aledra is a deserter. She served in Azam under General Aato. Then she fled. She was hiding in the woods near [F0] when my soldiers found her and brought her here. I was wondering how I might deal with her when you arrived._";

begintalknode;
	state = 251;
	nextstate = 252;
	condition = 1;
	question = "_Is all this true, Sage Aledra?_";
	text1 = "She bows her head. _It is, [P]. I am sorry. I could not stand to serve Governor Aato anymore. I tried to get a transfer, but I failed._ She couldn't have been trying for long. She is quite young.";
	text2 = "_So I came here. I heard about the raids here. I thought I could join another unit and fight for Haven here._";

begintalknode;
	state = 252;
	nextstate = 253;
	condition = 1;
	question = "_Tell me more about Governor Aato._";
	text1 = "_He is ... He is an incompetent. He can't do anything right. It would be better if he didn't do anything. Everything he does is wrong. And ... Now I am in trouble. He will be angered if he knows what I am saying about him._";
	text2 = "_I want to serve, but not for one who neglects those under him so._";

begintalknode;
	state = 253;
	nextstate = 252;
	condition = 1;
	question = "_I am aware of Aato's incompetence._";
	text1 = "Sage Aledra looks surprised. She opens her mouth to say something. Then, wisely, she closes it again.";

begintalknode;
	state = 253;
	nextstate = 252;
	condition = 1;
	question = "_And yet, you broke your oath as a soldier of Haven._";
	text1 = "_I want to serve, I swear it. It is only ... When I saw our soldiers sent on foolish missions and then abandoned ... I should not have violated my oath. I see that now._";

begintalknode;
	state = 252;
	nextstate = -1;
	condition = 1;
	question = "_Aledra, why did you come to [F0]?_";
	text1 = "_I hoped that I could serve here. I wanted to pretend I was lost and separated from my unit. I would offer to help. Get quarters. Blend in._ In a time of chaos like now, this isn't an impossible plan. Unlikely, but not impossible.";
	text2 = "_When I was found, Chief Cestus saw through me immediately._";

begintalknode;
	state = 252;
	nextstate = -1;
	condition = 1;
	question = "_Chief Cestus, what does the law say?_";
	text1 = "The Chief shrugs. _Haven is not kind to deserters. A death sentence is not unusual._ Aledra whimpers. _But mercy is possible._";
	text2 = "";

begintalknode;
	state = 252;
	nextstate = 257;
	condition = 1;
	question = "_I have made a decision._";
	text1 = "Sage Aledra says, _Please have mercy on me, [P]. I swear I want nothing but to serve Haven. I should not have abandoned my post._";
	text2 = "Chief Cestus looks strangely disappointed, but she has mostly mentally detached from the procedure.";

begintalknode;
	state = 257;
	nextstate = 254;
	condition = 1;
	question = "_Sage Aledra is guilty of desertion. Execute her._";
	text1 = "Aledra can't help but let out a cry of despair. Chief Cestus says, _Pity. What a waste._ Sage Aledra sobs as she is hauled away.";
	text2 = "Cestus says, _Oh, well. At least that is done. I need a meal._";
	code =	
		violence(3);
	break;
	
begintalknode;
	state = 257;
	nextstate = 254;
	condition = 1;
	question = "_Sage Aledra is guilty of desertion. Flog her. Then send her back to Aato._";
	text1 = "She barely notices the bit about the flogging. _But ... [P], when Aato learns why I deserted, he will ... will ..._ She starts to sob. Happily, the guards drag her away. The disturbing noises end eventually.";
	text2 = "Cestus says, _We'll put some ointment on her back and march her north tomorrow. Waste of time. Oh, well. At least that is done. I need a meal._";
	code =	
		violence(3);
	break;

begintalknode;
	state = 257;
	nextstate = 254;
	condition = 1;
	question = "_Send Sage Aledra back to Aato for punishment._";
	text1 = "_But ... [P], when Aato learns why I deserted, he will ... will ..._ She starts to sob. Happily, the guards drag her away.";
	text2 = "Cestus says, _We'll march her north tomorrow. Waste of time. Oh, well. At least that is done. I need a meal._";
	code =	
		violence(3);
	break;

begintalknode;
	state = 257;
	nextstate = 254;
	condition = 1;
	question = "_Sage Aledra is now stationed in [F0]. Chief Cestus, find some work for her._";
	text1 = "Sage Aledra thanks you profusely. The guards don't care either way. After they lead her away, Chief Cestus is pleased. _Always nice to have another ... magician around the place. A bit on the merciful side, perhaps, but we can't afford to waste material._";
	text2 = "_At least that is done. I need a meal._";
	code =	
		violence(-3);
	break;

begintalknode;
	state = 254;
	nextstate = -1;
	condition = 1;
	question = "_So am I done here?_";
	text1 = "_Of course, [P]. Thank you again for your wisdom._";
	action = END_TALK;
	code =
		erase_char(53);
	break;

// JUDGMENT 6

begintalknode;
	tag = 280;
	state = -1;
	nextstate = 280;
	condition = 1;
	question = "Name";
	text1 = "You interrupt a meeting between Chief Cestus and an old soldier of Haven. His face is wrinkled and his hair is gray and thinning, but he still stands upright, and his sword and armor are in good repair.";
	text2 = "When you approach, Chief Cestus smiles. _[P], give me the honor of introducing Captain Shaytham._";
	code =
		award_party_xp(20);
		sf(92,25,1);
	break;

begintalknode;
	state = 280;
	nextstate = 281;
	condition = 1;
	question = "_So what crime has Shaytham committed?_";
	text1 = "There is a tense pause. Then the two soldiers laugh. _The [P] is known for wit,_ Shaytham says. _I was passing by on a ship, docked to resupply at Laskara on the way home. I decided to take a short journey to see my old fort._";

begintalknode;
	state = 280;
	nextstate = 281;
	condition = 1;
	question = "_Hello, Shaytham._";
	text1 = "Shaytham salutes. _It is an honor, [P] [N]. I won't be a problem for long. I was passing by on a ship, docked to resupply at Laskara on the way home. I decided to take a short journey to see my old fort._";

begintalknode;
	state = 281;
	nextstate = 282;
	condition = 1;
	question = "_You came here now? In this dangerous time?_";
	text1 = "_I served in the Ro for many a year. I've seen all the provinces. I'm not scared of the roads here, raids or not. I had good reason to come to [F0], though. Not just nostalgia for an old campaigner._";

begintalknode;
	state = 282;
	nextstate = -1;
	condition = 1;
	question = "_Tell me about your service._";
	text1 = "_I served in the Rokaj twenty years. A scout and a courier, most of the time, but I helped put down eleven rebellions._";
	text2 = "Cestus asks, _Eleven?_";
	text3 = "_Oh, yes. Small uprisings, but the Rokaj never needs an excuse to rebel. Peace feels like weakness to them._";

begintalknode;
	state = 282;
	nextstate = -1;
	condition = 1;
	question = "_What do you think of the Rokaj?_";
	text1 = "_I wouldn't lecture you on it, [P]. You're half-Ro, after all. Only ... They're a fierce people. I admire them, in their stubborn way._";
	text2 = "_Just remember, they never feel the need to tell the truth to an outsider. They will lie to your face a thousand times, while their Deep Truth hides inside waiting to come out at the worst time._";

begintalknode;
	state = 282;
	nextstate = 283;
	condition = 1;
	question = "_And why are you here now?_";
	text1 = "_I served in the Seventh Army of Haven. It's still here, outside Laskara. A long, proud history, we have. Going back to the Great Uprising. We lost a lot of soldiers then._";
	text2 = "_Just as bad, they took our banner._";

begintalknode;
	state = 283;
	nextstate = 284;
	condition = 1;
	question = "_A banner?_";
	text1 = "_Yes. The symbol of the battalion, the spirit of the army. It disappeared with our soldiers. Years after the Uprising was put down, we started to hear rumors. The Ro still have our banner. Pass it around. Reveling in their tiny victory, in the killing of our soldiers._";
	text2 = "_That is why I'm here. The Seventh Army hasn't forgotten. We want our banner back._";

begintalknode;
	state = 284;
	nextstate = -1;
	condition = 1;
	question = "_How long ago was this banner lost?_";
	text1 = "_In the Great Uprising, about a century ago. It's probably a little worn now, but it will still be in condition. Our banners are like Haven's armies: Built to endure._";

begintalknode;
	state = 284;
	nextstate = -1;
	condition = 1;
	question = "_How was the banner lost?_";
	text1 = "_One of our battalions chased some Ro killers up into the valleys of the Low Dhaga. Went too far. Fell out of supply. Probably got lost. Never came out again._";
	text2 = "_They fell in the Low Dhaga. All gone. We didn't even get the bones. Those soldiers were lost for good. When the Ro surrendered, they pretended they didn't know what happened to our soldiers and our banner. But they know._";

begintalknode;
	state = 284;
	nextstate = -1;
	condition = 1;
	question = "_Why is this banner so important?_";
	text1 = "_It is our symbol. It is our honor. Where we plant it, that is Haven. It's a bit of our Homeland, lost in some dirty Ro cave. Can't be endured. Sorry for speaking so plainly, [P]._";

begintalknode;
	state = 284;
	nextstate = 285;
	condition = 1;
	question = "_Describe the banner._";
	text1 = "He describes it. Sounds like a banner, one of hundreds. _It's been a long time we've been hunting for it. Now it's an unstable time. Now some of the Ro might want to buy safety for themselves. Maybe someone in the Low Dhaga has heard something and will talk._";
	text2 = "_I'm old. I can't travel like I used to. If you went there, though, begging your leave, you could win a lot of love from your people by asking around._ He salutes again.";

begintalknode;
	state = 285;
	nextstate = -1;
	condition = 1;
	question = "_I really am too busy for this right now._";
	text1 = "Shaytham is disappointed, but he hides it well. He salutes you. _Was an honor to meet you, [P]. And Cestus, I take my leave. Sleep with one eye open. None of the Ro can be trusted._";
	text2 = "He turns and marches proudly out of the hall. Chief Cestus smiles. _Nice to meet someone who survived this place, eh? Gives a little hope._";
	action = END_TALK;
	code =
		queen_faction(-1);
		ro_faction(1);
		sf(92,25,2);
		erase_char(54);
	break;

begintalknode;
	state = 285;
	nextstate = -1;
	condition = 1;
	question = "_The honor of Haven is at stake. I will try to recover our banner._";
	text1 = "Shaytham salutes smartly. _As I said, ask around in the Low Dhaga. Someone will sell a secret to you. If you can bring it back, it will do wonders for morale, I promise it. When you have it, bring it back to Cestus._";
	text2 = "_Was an honor to meet you, [P]. And Cestus, I take my leave. Sleep with one eye open. None of the Ro can be trusted._";
	text3 = "He turns and marches proudly out of the hall. Chief Cestus smiles. _Nice to meet someone who survived this place, eh? Gives a little hope. If you bring me the banner, I'll make sure it goes to the right place._";
	action = END_TALK;
	code =
		queen_faction(1);
		toggle_quest(17,1);
		
		erase_char(54);
	break;
		
// JUDGMENT 7

begintalknode;
	tag = 310;
	state = -1;
	nextstate = 310;
	condition = 1;
	question = "Name";
	text1 = "There is a soldier of Haven standing at attention in front of Chief Cestus. He's close to middle-age, perhaps thinking of retirement. The harsh sun and winds of the Rokaj have marked his skin. He is unarmed, painfully skinny, and his hands are tied in front of him.";
	text2 = "Chief Cestus says, _I am so sorry, [P]. I could use your opinion on this case. It is ... unusual._";
	code =
		award_party_xp(20);
		sf(92,26,1);
	break;

begintalknode;
	state = 310;
	nextstate = 311;
	condition = 1;
	question = "_And who is this, Cestus?_";
	text1 = "Before Cestus can open her mouth, the man turns and salutes (sort of, his hands are bound). _Begging your pardon, [P]. I'm Private Talant. Soldier of the Queen. Twelve years in the Ro, I have._";

begintalknode;
	state = 311;
	nextstate = 312;
	condition = 1;
	question = "_You look to be in bad shape, Talant._";
	text1 = "_Apologies for that, [P]. I spent my last three years up in the High Litha. It wears a person down. Was looking forward to coming to an easier place for my last years of service. Didn't think I'd come this way._";
	text2 = "Chief Cestus clears her throat. _The High Litha, they have a complaint about this soldier. The Lithans are a hard and stubborn folk, and they wouldn't back down._";

begintalknode;
	state = 311;
	nextstate = 312;
	condition = 1;
	question = "_And why have you been brought here?_";
	text1 = "_Well, [P], sorry for being such a trouble. I serve way up in the High Litha. Hard living up there, and a hard people. No humor, lots of grudges. And, well, I got on their bad side._";
	text2 = "Chief Cestus clears her throat. _The High Litha, they have a complaint about this soldier. The Lithans are a hard and stubborn folk, and they wouldn't back down._";

begintalknode;
	state = 312;
	nextstate = 313;
	condition = 1;
	question = "_And what is their complaint?_";
	text1 = "Again, Chief Cestus opens her mouth. Again, Talant can't keep his shut. _Well, [P], was up on a patrol in their freezing valleys. And I had to relieve myself, as you do. I do it just inside of a cave, outside of the wind, see. Turns out it was one of their ten thousand crypts._";
	text2 = "Cestus steps in. _It is where the Lithans go to speak with their shades. A sacred place, to them, if unmarked. They are very angry about it. They say their sacred lands were defiled. They sent this soldier for punishment._";

begintalknode;
	state = 313;
	nextstate = -1;
	condition = 1;
	question = "_You couldn't have done your business somewhere else, Talant?_";
	text1 = "_But [P], you've been up there! You know how the wind cuts. It was growing dark, and I saw a cave. Looked like one of ten thousand. Was only in there for a minute. Didn't know those Lithans stored ghosts there._";

begintalknode;
	state = 313;
	nextstate = -1;
	condition = 1;
	question = "_Talant, why did you let the Ro see you?_";
	text1 = "_I didn't! Was none of them around! Their ghosts, they spied on me. Then they tattled. The dead, they gave a good description of me! They knew me right away. Not right, the dead ones tattling on a person. Why do the Ro have to keep causing trouble even when they're dead?_";

begintalknode;
	state = 313;
	nextstate = -1;
	condition = 1;
	question = "_What does the High Litha want here, Cestus?_";
	text1 = "_Ah. Well. Um. They ask for execution. The High Lithans, they're a stern people. Really respect their shades. They will be annoyed at anything less._";
	text2 = "Talant snorts. _Those folk, they are always annoyed. Taking my head off my shoulders will change nothing._";
	
begintalknode;
	state = 313;
	nextstate = -1;
	condition = 1;
	question = "_What do you think, Cestus?_";
	text1 = "Cestus sighs. _If it were me? Death is out of the question. I don't think punishing Talant is fair, but we don't want the Ro any angrier at this stage._";
	text2 = "Talant adds, _I think death is out of the question too._";

begintalknode;
	state = 313;
	nextstate = 314;
	condition = 1;
	question = "_I've made a decision._";
	text1 = "You have their undivided attention.";

begintalknode;
	state = 314;
	nextstate = 315;
	condition = 1;
	question = "_Dock Talant a month's pay._";
	text1 = "Talant sighs. _Not fair. A shame, it is. Still, you're the [P]. If it's for the good of Haven._ Talant is led out of the hall.";
	text2 = "Cestus says, _Well, the Ro will be angry. Really can't be helped, though._";
	code =
		ro_faction(-2);
		queen_faction(2);
		violence(-1);
		inc_flag(80,5,1);
	break;
	
begintalknode;
	state = 314;
	nextstate = 315;
	condition = 1;
	question = "_Flog Talant._";
	text1 = "Talant grimaces. _Again? Not fair. Not fair at all. Still, you're the [P]. If it's for the good of Haven._ Talant is led out of the hall.";
	text2 = "Cestus says, _Well, the Ro will be irritated, but not furious. Really can't be helped, though._";
	code =
		ro_faction(-1);
		violence(1);
	break;

begintalknode;
	state = 314;
	nextstate = 315;
	condition = 1;
	question = "_Execute Talant._";
	text1 = "There is a long, shocked silence. When it becomes clear that you are not joking, an uncomprehending, weeping Talant is dragged out of the hall.";
	text2 = "Cestus says, _Well, the Ro will be pleased. You have made them very, very happy. I'm sure you will be repaid._";
	action = END_TALK;
	code =
		ro_faction(3);
		queen_faction(-3);
		violence(5);
		inc_flag(80,5,-1);
		erase_char(55);
	break;

begintalknode;
	state = 314;
	nextstate = 315;
	condition = 1;
	question = "_Let Talant go and stop wasting my time._";
	text1 = "Talant is untied. He salutes. _A real honor, [P]. Good to know for all the fancy food and clothes, you're still one of us._ He is led out of the hall.";
	text2 = "Cestus says, _Well, the Ro will be quite angry. Really can't be helped, though._";
	code =
		ro_faction(-2);
		queen_faction(1);
		violence(-3);
		inc_flag(80,5,1);
	break;

begintalknode;
	state = 315;
	nextstate = -1;
	condition = gf(92,26) == 1;
	question = "_Please make sure Talant serves in the High Litha for a good, long time._";
	text1 = "Cestus makes a note on a sheet of parchment. _Done._";
	code =
		violence(1);
		sf(92,26,2);
	break;

begintalknode;
	state = 315;
	nextstate = -1;
	condition = gf(92,26) == 1;
	question = "_Please make sure Talant is transferred out of the High Litha._";
	text1 = "Cestus makes a note on a sheet of parchment. _Done._";
	code =
		violence(-1);
		sf(92,26,2);
	break;

begintalknode;
	state = 315;
	nextstate = -1;
	condition = 1;
	question = "_Anything else, Chief Cestus?_";
	text1 = "_That is all. Another day's work concluded. If you will excuse me, I need several drinks._";
	action = END_TALK;
	code =
		erase_char(55);
	break;
		
// JUDGMENT 8

begintalknode;
	tag = 340;
	state = -1;
	nextstate = 340;
	condition = 1;
	question = "Name";
	text1 = "You find Chief Cestus and a young, skinny man of the Ro staring at each other. The man is wearing furs and a belt. An empty sheath hangs from his belt. He is chained to the post, and his face is completely without expression.";
	text2 = "Chief Cestus turns to look at you. You can see the frustration on her face.";
	code =
		award_party_xp(20);
		sf(92,27,1);
	break;

begintalknode;
	state = 340;
	nextstate = -1;
	condition = 1;
	question = "(Examine the prisoner.)";
	text1 = "It takes no time to recognize this man as a trained killer. His stance, his cold expression, his calloused hands. He is a dangerous foe.";

begintalknode;
	state = 340;
	nextstate = 341;
	condition = 1;
	question = "_Chief Cestus, who is this?_";
	text1 = "_He is an assassin. He won't say his name. He was captured by our soldiers in the High Litha city of Etzalam. One of our mages paralyzed him before he could escape or kill himself._";
	text2 = "_We catch a Ro assassin sometimes. He was bound and brought here to be dealt with in the usual way._";
	text3 = "The assassin quietly stares straight ahead.";

begintalknode;
	state = 341;
	nextstate = 342;
	condition = 1;
	question = "_The usual way? What do you mean?_";
	text1 = "_Well, he is probably a assassin. The Ro pay assassins to kill each other frequently. It's their characteristic, bloody, efficient way to deal with political and business disputes._";
	text2 = "_It is recognized as an integral part of Ro politics. Thus, Haven treads lightly. When they get caught, they are brought here for standard processing._";

begintalknode;
	state = 342;
	nextstate = -1;
	condition = gf(10,11) > 1;
	question = "_A Raasa has been killed. I want to know who is responsible._";
	text1 = "_I can't tell you. I swear it. The Geld Nas are split up into many small bands. None of us know what jobs the others are taking._";
	text2 = "_I don't know who would kill a Raasa. If it even was the Geld Nas.  Perhaps we are not responsible._";
	
begintalknode;
	state = 342;
	nextstate = -1;
	condition = 1;
	question = "_Any words about this charge, assassin?_";
	text1 = "He turns and looks you in the eye. _I am Geld Nas. I am part of the Ro, and I help the Ro progress. I will be freed in the standard manner._";

begintalknode;
	state = 342;
	nextstate = 343;
	condition = 1;
	question = "_What happened, exactly?_";
	text1 = "Cestus picks up a dirty scrap of paper and inspects it with disgust. _A typically incomplete report from the High Litha. This fellow was sneaking into some merchant's home in the middle of the night. One of our patrols saw him by dumb luck._";
	text2 = "_Pretty careless of him, really._ The assassin shrugs.";
	text3 = "_Anyway, they subdued him. Found some daggers. Some poison. A wire for strangling. So he's Geld Nas. Two weeks later, he's dumped in our lap. Waiting to be let free for payment._";

begintalknode;
	state = 343;
	nextstate = -1;
	condition = 1;
	question = "_Assassin, are you guilty of this?_";
	text1 = "The assassin says, in a resigned voice, _Yes. I had been hired to do my work. I was careless, and I will be punished. It's not your place to do it, though. You must let me free, so that I can answer to the Geld Nas._";

begintalknode;
	state = 343;
	nextstate = -1;
	condition = 1;
	question = "_The Geld Nas?_";
	text1 = "Cestus says, _The Rokaj assassin's guild. The ones who have been slaying Raasas. Who are the only ones permitted to kill for money in this odd land._";
	text2 = "_Our orders are clear. Don't interfere with the Geld Nas. We don't bother them. They don't bother us._";

begintalknode;
	state = 343;
	nextstate = -1;
	condition = 1;
	question = "_Let free for payment?_";
	text1 = "_That's the way. We let them go. Soon, the Geld Nas send us bribes. Supplies. Money. That kind of thing. Sort of a nice arrangement, really, and allowed by Haven's leaders since the Great Uprising._";

begintalknode;
	state = 343;
	nextstate = -1;
	condition = 1;
	question = "_Chief Cestus, have anything to say about this?_";
	text1 = "_Not really. Honestly, I was about to let the fellow go when you walked in._";

begintalknode;
	state = 343;
	nextstate = 344;
	condition = 1;
	question = "_I have made a decision._";
	text1 = "Chief Cestus looks nervous. _Of course, [P]. I would only humbly ask that our old procedures be considered._";
	text2 = "The assassin stares straight ahead, still creepily emotionless.";

begintalknode;
	state = 344;
	nextstate = 345;
	condition = 1;
	question = "_Assassins are not tolerated in my lands. Execution._";
	text1 = "The assassin turns to you. _The Geld Nas will hear of this. We will not forget this insult. Our tolerance for Haven's presence will end._ Then he turns and is led quietly to his fate.";
	text2 = "Cestus looks ill.";
	code =
		queen_faction(-2);
		ro_faction(-2);
		violence(3);
		sf(80,19,3);
	break;
	
begintalknode;
	state = 344;
	nextstate = 345;
	condition = 1;
	question = "_Assassins are not tolerated in my lands. So, flogging._";
	text1 = "The assassin nods. _This is a grave insult, but we know that royalty can have many obligations. I will return to my fellows. I will ask the Geld Nas to forgive this insult._";
	text2 = "The guards prepare to lead the assassin away.";
	code =
		ro_faction(-2);
		violence(1);
		sf(80,19,2);
	break;

begintalknode;
	state = 344;
	nextstate = 345;
	condition = 1;
	question = "_I will respect the local traditions. Let the assassin go._";
	text1 = "The assassin nods as the shackles are removed. _I will see that precious gifts are delivered. We want the royalty of Haven to know that the Geld Nas are respectful and know how to pay tribute. Quicksilver and precious materials will be sent._";
	text2 = "_Now I go to face my fate._ The guards prepare to lead the assassin away.";
	code =
		sf(2,27,1);
		activate_mine_resource(44);
		queen_faction(2);
		ro_faction(2);
		violence(-2);
		sf(80,19,1);
	break;

begintalknode;
	state = 344;
	nextstate = 345;
	condition = 1;
	question = "_If taking a bribe is the way this situation is usually resolved, who am I to say no?_";
	text1 = "The assassin nods as the shackles are removed. _I will see that precious gifts are delivered. We want the royalty of Haven to know that the Geld Nas are respectful and know how to pay tribute. Quicksilver and precious materials will be sent._";
	text2 = "_Now I go to face my fate._ The guards prepare to lead the assassin away.";
	code =
		sf(2,27,1);
		activate_mine_resource(44);
		queen_faction(2);
		ro_faction(1);
		violence(-2);
		sf(80,19,1);
	break;

begintalknode;
	state = 345;
	nextstate = -1;
	condition = gf(80,19) < 3;
	question = "_I would like to meet with the Geld Nas._";
	text1 = "The assassin stops and thinks about this. _Normally, it would not be permitted. But ... You are a [P], and the world is in turmoil. So. Look in the underworld. Look to the north. More, I can't say._";

begintalknode;
	state = 345;
	nextstate = -1;
	condition = 1;
	question = "_Is that all, Cestus?_";
	text1 = "As the assassin is taken away. Chief Cestus says, _Yes. Thank you for your precious time, [P]._";
	text2 = "";
	action = END_TALK;
	code =
		erase_char(56);
	break;

begintalknode;
	state = 345;
	nextstate = -1;
	condition = 1;
	question = "_It seems Haven has developed some unusual practices in the Rokaj._";
	text1 = "As the assassin is taken away. Chief Cestus says, _All vassals are unique. Each requires its own adjustments. The Rokaj more than most. Thank you for your precious time, [P]._";
	action = END_TALK;
	code =
		erase_char(56);
	break;
		
// JUDGMENT 9

begintalknode;
	tag = 370;
	state = -1;
	nextstate = 370;
	condition = 1;
	question = "Name";
	text1 = "Chief Cestus welcomes you back to her hall. She looks utterly miserable. It takes you a moment to see why. A young Ro woman in a ragged dress is slumped in one of the chairs. She looks like she is from the Low Dhaga. She has been weeping.";
	text2 = "Chief Cestus looks up at you, relieved that someone is here to help her.";
	code =
		award_party_xp(20);
		sf(92,28,1);
	break;

begintalknode;
	state = 370;
	nextstate = -1;
	condition = 1;
	question = "_Cestus, who is this?_";
	text1 = "_I ... I think you should talk to her yourself. It is a difficult situation._";

begintalknode;
	state = 370;
	nextstate = 371;
	condition = 1;
	question = "_Who are you?_";
	text1 = "She looks up at you. You can see traces of mostly healed bruises on her face. _I am Altynay._ She stands up, trying to regain some of the dignity of the Rokaj. _I am of the Low Dhaga. I am here to ask for Sanctuary._";

begintalknode;
	state = 371;
	nextstate = 372;
	condition = 1;
	question = "_Sanctuary? What do you mean?_";
	text1 = "_I know much of Haven. Of your Queen. Of wise Princess Delia, who gives advice. I know you would not ignore me._";
	text2 = "_When I was young I tried to find ways to leave the Low Dhaga, but I failed. So I was given a marriage. I want to leave my husband, but it is not allowed. I flee him. I run here to ask for a new, safe home. For Sanctuary._";

begintalknode;
	state = 372;
	nextstate = -1;
	condition = 1;
	question = "_Altynay, tell me about your husband._";
	text1 = "_He is a brute. He is ignorant. I have risked everything to flee him and walk here._";

begintalknode;
	state = 372;
	nextstate = -1;
	condition = 1;
	question = "_Altynay, how did you try to leave the Low Dhaga?_";
	text1 = "_I studied as much as a girl is allowed. I showed some talent. I tested many times to join the Erudico, but I fell short each time. So I fell back into the masses of the Low Dhaga. I was married to a brute._";

begintalknode;
	state = 372;
	nextstate = -1;
	condition = 1;
	question = "_Chief Cestus, is Sanctuary a thing Haven normally gives?_";
	text1 = "_Ah. Well. Yes. I suppose. We are Haven. We can do whatever we want._";
	text2 = "_However, Sanctuary is rarely given, and only for issues of great political import. Not just when someone is having troubles with their culture. No matter how unpleasant._";

begintalknode;
	state = 372;
	nextstate = 373;
	condition = 1;
	question = "_What do you want, Altynay?_";
	text1 = "_I want to go to Haven. I will study. I will work. I will do whatever I can. Just don't let me be buried in the Low Dhaga. Please._";

begintalknode;
	state = 373;
	nextstate = -1;
	condition = 1;
	question = "_Chief Cestus, any thoughts on this?_";
	text1 = "She wishes that you wouldn't ask. _I must be honest. If you take her away, the Rokaj will see this as an insult to their traditions. They will be angry. In another time, we might be able to withstand it. But now?_ She sighs.";

begintalknode;
	state = 373;
	nextstate = -1;
	condition = 1;
	question = "_Altynay, why can't you stay in the Rokaj?_";
	text1 = "She turns to face you, though she doesn't move without difficulty. _I have talent! I have kindness! I want to be like your Princess Delia. I want to find a way to learn, and to use that learning._";

begintalknode;
	state = 373;
	nextstate = -1;
	condition = 1;
	question = "_Cestus, what exactly does Altynay's husband say?_";
	text1 = "_Um, we have received a message. His clan are successful stoneworkers in the Low Dhaga. He apologies for the difficulties they have caused. If we return Altynay, he will pay us well in quality building stone._";

begintalknode;
	state = 373;
	nextstate = 374;
	condition = 1;
	question = "_I have made a decision._";
	text1 = "Altynay stands tall and adopts a proud, stoic expression. She does not expect anything good to happen.";
	text2 = "Chief Cestus mutters, _If she doesn't return home, staying in the Rokaj will be impossible. Vendettas, you know. Also, in the past, I have been encouraged by the Palace to not get involved in these little squabbles._";
	
begintalknode;
	state = 374;
	nextstate = -1;
	condition = 1;
	question = "_Altynay can live in this fort._";
	text1 = "Chief Cestus clears her throat. _I'm sorry, [P], but that is impossible. Word from Prince Sutter. No Ro are allowed to live in our forts. I must obey his orders._";

begintalknode;
	state = 374;
	nextstate = 375;
	condition = 1;
	question = "_Send Altynay back to the Low Dhaga._";
	text1 = "Altynay does not beg. She doesn't respond in any way. She just turns and leaves the hall. Cestus says, _It is for the best. I will send guards to escort her. She will get home safely._";
	text2 = "_If it is any consolation, the Low Dhaga will be most pleased. Also, a bribe of quality stone for her return has been promised._";
	code =
		inc_flag(80,4,-1);
		ro_faction(3);
		queen_faction(2);
		sf(2,26,1);
		activate_mine_resource(45);
	break;
	
begintalknode;
	state = 374;
	nextstate = 375;
	condition = 1;
	question = "_Put Altynay on the next ship to Haven._";
	text1 = "Altynay bows deeply. Cestus gives orders, and guards take her out of the hall. He says, _A noble choice, but one that will anger the Low Dhaga greatly. Very brave. I will see that it is done._";
	code =
		inc_flag(80,4,1);
		ro_faction(-6);
		queen_faction(-2);
	break;

begintalknode;
	state = 375;
	nextstate = -1;
	condition = 1;
	question = "_Was it necessary for me to be involved in this, Cestus?_";
	text1 = "_I don't know. I suppose I could have turned her away. Trust me, I've turned back many like her before. It was good to have someone else take on the burden for once._";

begintalknode;
	state = 375;
	nextstate = -1;
	condition = 1;
	question = "_I am done here._";
	text1 = "_Understood. Thank you for sharing my burden, [P]._";
	action = END_TALK;
	code =
		erase_char(57);
	break;
